Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

PYTHON I need help with fixing my code. thank you. **You have a unique ID number

ID: 3795937 • Letter: P

Question

PYTHON

I need help with fixing my code. thank you.

**You have a unique ID number, which is represented by the variable id, containing a string of numbers. Write a program that continuously takes strings to standard input. If the string is not your ID number, print "This is not your ID number." If it is, print "This is your ID number: " followed by the number, and terminate the loop.**

-----------------------------------------

id = "12345"
number = input ("Enter an ID: ")
while id !=number:
       print ("This is not your ID number")
print("This is your ID number:", number )
number = input ("Enter an ID: ")
if id == number:
    print ("This is your ID number: " , id)

Explanation / Answer

This code will help :