age = 25 age_in_seconds = age * 365 * 24 * 60 * 60 print(age_in_seconds)
Level 2 introduces how to repeat code so you don't have to copy-paste lines 100 times. code avengers answers python 2 new
where users can select their favorite styles from a list . age = 25 age_in_seconds = age * 365
A common task involves creating a list and printing its contents using a loop. : Building more complex decision-making tools, like grade
: Building more complex decision-making tools, like grade calculators or expense trackers. Further Exploration Review the Level 2 Course Overview for a detailed list of learning outcomes. Check out the Intro to Python Lesson 2 Video Guide for a visual walkthrough of the refactoring tasks. Browse community-sourced notes on for additional exercise explanations. Are you stuck on a specific lesson number or task, like the "Gear up for Safety" project? Learn Python With Code Avengers
# access elements print my_tuple[0] # prints 1