# Lists and loops
fruits = ['apple', 'banana', 'cherry']
for fruit in fruits:
print(fruit)
# Functions
def factorial(n):
if n == 0:
return 1
else:
return n * factorial(n-1)
print(factorial(5))
Practice in Colab notebook.
Why this step matters:
-Python is the foundation for 90% of AI coding workflows
-Enables handling data structures essential for ML datasets
6-8 hours
Google Colab, Python 3.12, Official Python Tutorial
$0
Definition of Done
•Completed Python tutorial chapters 1-6
•Wrote and ran functions using lists, dicts, loops
•Created a simple script with modules
Common Mistakes to Avoid
❌ Skipping control flow practice, jumping to data science
→Build 3 small scripts: calculator, list processor, file reader
❌ Using print() for debugging only
→Use assert statements and unit tests for functions
2
Following along, or just reading? 👀
Spin up a personalized “learn AI coding” plan you can save, check off, and return to anytime — unlimited on the free trial.