Answer to Question #133384 in Python for Anna

Question #133384
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")

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

Assignment Expert
15.10.20, 20:17

Dear visitor, please use panel for submitting new questions

Justin Vargas
15.10.20, 19:40

What do you mean by except

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS