Put in order · Python course · Module 1: Python Basics
Conversion Process
Order the steps of a program that gets the user's age:
Items to put in order
- age = int(age_text)
- print(f'Next year: {age + 1}')
- age_text = input('How old are you? ')
Show the answer
Correct order:
- age_text = input('How old are you? ')
- age = int(age_text)
- print(f'Next year: {age + 1}')