Andy_Fang
asked on
Error on line 5?
name = input("What is your name? ")
age = input("How old are you? ")
grade = input("What is your grade average, in decimal form? ")
grade = float(grade)
print("Your name is {}, you are {} years old, and you have a grade point average of {:.%5,2}".format(name, age, grade * 100))
error; untitled-1.py, line 5, in <module>
print("Your name is {}, you are {} years old, and you have a grade point average of {:.%5,2}".format(name, age, grade * 100))
What am I doing wrong?
try with {:%5.2}
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.