https://inspiredpython.com
Welcome • Inspired Python
Grow your Python skills with our detailed courses and articles that solve real-world problems
Welcome • Inspired PythonOpen main menuAbout UsCourses & ArticlesQuick TipsIPSign UpLog InIPLet’s Code!Grow your Python skills with detailed courses and articles that solve real-world problems.SpotlightPart 1Make your own Tower Defense Game with PyGameLearn how to make games in Python with PyGame by writing a Tower Defense Game from scratch. You’ll learn sprite handling, movement, kinematics, collision detection, path finding and much more!Read More Let's Write a Game Boy EmulatorRemember the Game Boy? Have you ever wondered what it would take to build an emulator capable of running Game Boy cartridges? Let's write one and find out!Latest ArticlesPart 10Tower Defense Game: Game Modes & Collision DetectionOur tower defense game needs a game mode so we know when we’ve won or lost the game, and we want our turrets to fire at passing enemiesRead More Part 9Tower Defense Game: Path FindingOur tower defense game needs a depth-first search path finding algorithm capable generating paths between all possible starts and exists.Read More Part 8Tower Defense Game: Animation and KinematicsOur tower defense game needs kinematics for motion and rotation, and animation to make it all look nice. The simplest way to do this is with the itertools module, lazy evaluation and generators.Read More More ArticlesInspired TipsInspirations for busy people Inspired Python◆◆◆def current_datetime(dt = datetime.datetime.now()): print(dt) >>> current_datetime() 2021-10-09 16:09:43.009959 >>> current_datetime() 2021-10-09 16:09:43.009959 “Python Anti-Patterns: Argument Side EffectsBe extra careful if you assign the result of a function call to a default argument. Python evaluates argument defaults on module load, so if your function is non-deterministic or has side-effects, you could run into trouble. As the example shows, the printed time is frozen; it was set once when the code was first evaluated.More tipsBe Inspired Get Python tips sent to your inboxWe'll tell you about the latest courses and articles.Absolutely no spam. We promise! Sign UpFooterLearnAll ArticlesQuick TipsAbout UsSign UpLoginAboutPrivacySocialTwitterLinkedInAtom FeedCopyright © 2021-22 Inspired Python. All rights reserved.
en
en
1727325682
https://inspiredpython.com
Hlela isayithi yakho?
Wentani?