1# Python Program for simple OTP genertaor
2
3import random as r
4# function for otp generation
5def otpgen():
6 otp=""
7 for i in range(4):
8 otp+=str(r.randint(1,9))
9 print ("Your One Time Password is ")
10 print (otp)
11otpgen()