import random
while (True):
ranNo1=random.randint(1000,9999)
ranNo2=random.randint(1000,9999)
otp= ranNo1
print ("The OTP is :",otp)
a = int(input ("Enter the OTP : "))
if(a!= otp):
print ("You Enter A Wrong OTP....!!!\n")
otp = ranNo2
else:
print ("Congratulations.... You Can Login...!!!")
break

0 Comments