guneshs

loop eg

May 28th, 2020
407
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.18 KB | None | 0 0
  1. while True:
  2.     x=input('ENter d name\n')
  3.     if(x=='kiran'):
  4.         print('Success\n')
  5.         # if you want come out of this loop
  6.         # uncomment below line
  7.         #break
  8.     else:
  9.         print('Failed\n')
Add Comment
Please, Sign In to add comment