Westonci.ca offers quick and accurate answers to your questions. Join our community and get the insights you need today. Explore thousands of questions and answers from knowledgeable experts in various fields on our Q&A platform. Get precise and detailed answers to your questions from a knowledgeable community of experts on our Q&A platform.

Write a program that accept a whole number a input, mutiplie that number by 21, and then output the product

Sagot :

Answer:

while True:

   try:

       whole_number = int(input("Enter a whole number: "))

       break

   except ValueError:

       print("That is not a whole number. Try again.")

product = whole_number * 21

print("The product is", product)

Explanation:

using while true and except ValueError to make sure the user enters a whole number

We appreciate your time. Please revisit us for more reliable answers to any questions you may have. We hope you found what you were looking for. Feel free to revisit us for more answers and updated information. Westonci.ca is here to provide the answers you seek. Return often for more expert solutions.