asked 120k views
12 votes
python. create a program that asks the user to input their first name and their favorite number. Then the program should output the user's name and favorite number in the following format: "[first names]'s favorite number is [number]!"​

1 Answer

8 votes

name = input("What is you name?")

fav_number = input("What is you favorite number?")

print(name + " your favorite number is " + fav_number + "!")

answered
User Dtyler
by
8.0k points
Welcome to Qamnty — a place to ask, share, and grow together. Join our community and get real answers from real people.

Categories