i = 0
j = 7
while i == 0:
m = int(input('Enter number here: '))
if j != m:
print('That is not the magic number')
else:
print('You have guessed it')
break
Enter number here: 8
That is not the magic number
Enter number here: 3
That is not the magic number
Enter number here: 7
You have guessed it
Comments
Leave a comment