: Learning to write your own reusable code blocks.
age = 25 print age
To process each item in a list (like a hero list), use a for loop: for hero in avengers: print(hero) . : code avengers answers python 2
: You will learn to use lists for ordered sequences and dictionaries for key-value pairs . : Learning to write your own reusable code blocks
Happy coding!
Python 2 uses dynamic typing. No semicolons needed. The print statement outputs the value. Common mistake: typing print(age) – while that works in Python 2, the course expects print age . the course expects print age .