Define a function that takes in the age of the user and adds it to an output sentence such as "You are ..... old".

def userName(): age = int(input("How old are you? ")) print(("You are {} old.").format(age))userName()

LR

Related Python Mentoring answers

All answers ▸

Why would I use dictionaries instead of a list?


How does a for loop work in Python?


What is the difference between a float and an integer variable type?


Write a program that computes the sum of all numbers up to a input number n