68 774
Assignments Done
Successfully Done
In January 2019

Answer to Question #67521 in Python for Juan

Question #67521
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.
Expert's answer
_id = '3824768933478627'

while True:
___if input('Input ID: ') == _id:
______print('This is your ID number:', _id)
______print('This is not your ID number')

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!


No comments. Be first!

Leave a comment

Ask Your question

Privacy policy Terms and Conditions