Question: num _ widget = 0 while True: choice = input ( Would you like to buy a widget? ( y / n ) :
num
widget
while True:
choice
input
Would you like to buy a widget?
y
n
:
if choice.lower
y
num
widgets
else:
break
print
f
You bought
num
widgets
widget
s
today
Refer to Code Example
If the user enters
Y
If the user enters no at the prompt, what does the program print to the console?
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
