Write a program that accepts a whole number as input, multiplies that number by 12and then outputs the product Hint: Remember that to think about the data type that the user will input. How can you make sure that their input is entered as a number?
1
Expert's answer
2020-09-16T05:13:36-0400
try:
a = int(input("Enter number: " ))
print("Product (x12) = " + str(a * 12))
except:
print("Entered not a number")
Comments
Dear visitor, please use panel for submitting new questions
What do you mean by except
Leave a comment