Question: What number should i enter? amountCalculated = 0 #Do not change this line #Create an input statement using the input ( ) method and assign

What number should i enter?
amountCalculated =0 #Do not change this line
#Create an input statement using the input() method and assign the input value to a variable named amount.
#Make sure to convert the value to float - float()
#Prompt should state "Enter a number:#If amount is less or equal "=" to 20 then multiple amount by 2; assign the result to amountCalculated
#else
#divide amount by 5; assign result to amountCalculated#print amountCalculated
amount=float(input("Enter a number:"))
if amount=20:
amountCalculated =amount *2
else:
amountCalculated=amount/5
print(amountCalculated)
Enter a number:
What number should i enter? amountCalculated = 0

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!