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 :
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.