94.5k views
9 votes
In this unit, you developed your skills at coding in Python. In this lab, you will put those skills to work by creating a program.

Your program should do the following:

Ask the user for their first name
Say “Hello” followed by the user’s first name
Ask the user how old they are
Tell the user how old they will be in 10 years and in 20 years
Tell the user how old they were 5 years ago

so this is the question and I have it finished but I need someone to correct it because I think some of it is wrong. please I really need help.

In this unit, you developed your skills at coding in Python. In this lab, you will-example-1
User Muposat
by
4.6k points

1 Answer

2 votes

Answer:

Don't forget to close any parentheses you open. Other then that everything looks fine, I just polished it a little bit

Step-by-step explanation:

name = input("What is your first name? ")

print("Hello", name)

age = int(input("How old are you? "))

print("In 10 years you will be", (age+10))

print("In 20 years you will be", (age+20))

print("5 years ago you were", (age-5))

User Ionut Negru
by
4.2k points