Hi! So, I am extremely new to Python and coding. I have this homework assaignment due tonight. I feel like I am sooo close, but for whatever reason MyProgrammingLab wont accept anything I put in. Maybe its my spacing? The assaignment is due tonight. Please help!!
Question:
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.
My Code:
Question:
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.
My Code:
number = input() while number != id: print("This is not your ID number.") number = input() print("This is your ID number:", id)Thank you to anyone with advice!


