Essay
Write a simple Python program that prompts the user for a given number of pennies, and displays the monetary value of the coins such that "xx cents" is displayed if the total number of pennies is less than 100, "x dollars and xx cents" is displayed if the number of pennies add up to dollars and cents, and "x dollars" is displayed if the pennies add up to whole dollars, with no leftover cents.
Correct Answer:

Verified
num_pennies = int(input('Enter the numbe...View Answer
Unlock this answer now
Get Access to more Verified Answers free of charge
Correct Answer:
Verified
View Answer
Unlock this answer now
Get Access to more Verified Answers free of charge
Q119: Which form of control does the if
Q120: Evaluate the following Python expressions.<br>-5 > 4
Q121: Most computer programs use<br>A) sequential and selection
Q122: True and False are the two _
Q123: The membership operator in of Python can
Q124: What is the term for the order
Q125: Which of the following is not a
Q126: Evaluate the following Python expressions for the
Q127: An if statement may include the use
Q129: Evaluate the following Python expressions.<br>-14 <= 14