import random print("Hi,Please enter your name:",end="") name=input() print("\nWelcome",name) print("\nenter your mail:",end="") mail=input() oin=random.randint(100,200) print("\nMail: Your otp is",oin,"\nwe have sent an otp to your email:",end="") while (True): otp=int(input()) if otp==oin: print("you have logged in :)") break else: print("please enter a valid one") continue
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter