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:

  1. age_text = input('How old are you? ')
  2. age = int(age_text)
  3. print(f'Next year: {age + 1}')