GotchiCode needs JavaScript for the code editor and live challenges. Please enable it to play.
GotchiCode
Paths
Courses
Community
Arcade
Leaderboard
Learn to Code in Python
◂
0 / 178
Before You Battle
How Lessons Work
10
What Is a Program?
10
Values and Their Types
10
Naming Your Gotchi
10
Your Gotchi's HP
10
Expressions: Code That Makes a Value
10
Level Up
10
Seeing Your Values: print
10
When Python Complains
10
Introduction
Variables
Meet Your Creature
Battle Conditions
The Turn Loop
A Party of Creatures
Moves & Inventory
Battle Functions
Guarding Against Bad Input
Capstone: The Battle Simulator
Unique Encounters
Battle Reports
Team Records
Typed Battlers
Sharpen Your Logic
Crunching Numbers
Flexible Functions
Working with Strings
Working with Lists
Working with Dictionaries
Looping Tools
Handling Exceptions
Formatting with F-strings
Set Operations
Classes
The collections Module
Lambdas & Sorting
Recursion
Inheritance
Dunder Methods
Generators
More String Methods
Decorators
Context Managers
Iterators
The itertools Module
The functools Module
Regular Expressions
Enums
Dataclasses
Properties
Static & Class Methods
Structural Pattern Matching
JSON
Unpacking
Conditional Expressions
Scope
Custom Exceptions
Abstract Base Classes
Type Hints in Depth
The Turn Queue
Stat Records
Cooldowns & Dates
Prepared Moves
Save Paths
Priority Order
Cloning Creatures
Sorting Tools
Battle Statistics
Tidy Battle Logs
Roster Files
Loading lesson…
solution.py
python
Loading…