Question: Write a program that prompts the user for a number from 1 to 200. If the value is less than or equal to 28, display

Write a program that prompts the user for a number from 1 to 200. If the value is less than or equal to 28, display "finger". If it doesn't display "finger", then test if the value is greater than or equal to 109; if so, display "leg". If nothing else has displayed, then display "lips". Click here for an example run

My code so far:

inp = int(input("Please enter a number from 1 to 200: "))

print(inp)

Error:

==================== YOUR OUTPUT ===================== 0001: [NONE] ===================

MISMATCH FOUND ON LINE 0001: ===================

ACTUAL : [NONE]

EXPECTED: Please~enter~a~number~from~1~to~200:~28 ======================================================

Adjust your program and re-run to test. Test 1 failed

I seem to be getting this mismatch error randomly. I believe the first two lines are correct, and I will even copy and paste old answers and reformat them to fit the current problem. I cannot figure out why I get this mismatch error with "no input" for my actual. Can someone help me figure out what I'm doing wrong so I can fix it in the future? This is for Python. Thank you!

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 Databases Questions!