Sovi.AI - AI Math Tutor

Scan to solve math questions

QUESTION IMAGE

question #2 what will print when the following code is run and the user…

Question

question #2
what will print when the following code is run and the user enters 13?
age = int(input(\how old are you?\))
print(\in 5 years, you will be \, age + 5, \years old.\)
in 5 years you will be 18 years old.
in 5 years you will be 13 years old.
in 5 years you will be years old.
error

Explanation:

Step1: Substitute the value of age

Given \( age = int(input("How old are you?")) \), when user enters \( 13 \), then \( age = 13 \).

Step2: Calculate age + 5

We need to find \( age+5 \). Substitute \( age = 13 \) into \( age + 5 \), so \( 13+5=18 \).

Answer:

In 5 years you will be 18 years old.