Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

how to make otp generator in python

# Python Program for simple OTP genertaor

import random as r
# function for otp generation
def otpgen():
    otp=""
    for i in range(4):
        otp+=str(r.randint(1,9))
    print ("Your One Time Password is ")
    print (otp)
otpgen()
Comment

otp generation in python

import random as r
i=100
while (i>=0):
    print(r.randint(0,9000)+1000)
    i=i-1
Comment

PREVIOUS NEXT
Code Example
Python :: count dictionary keys 
Python :: convert text to speech in python 
Python :: dataframe to text file 
Python :: ad background image with tkinter 
Python :: how to make a string case insensitive in python 
Python :: python import file from parent directory 
Python :: posted data to flask 
Python :: pandas return specific row 
Python :: python add field to dictionary 
Python :: how to remove tkinter icon 
Python :: discord py edit message 
Python :: discord.py get channel id by channel name 
Python :: df .sort_values 
Python :: how to make a random variable in python 
Python :: what is instance variable in python 
Python :: debug mode: on flask pythin window 
Python :: get context data django 
Python :: count elements in list 
Python :: telebot send file 
Python :: cryptography python 
Python :: create log in python 
Python :: pandas select rows by multiple conditions 
Python :: add column to existing numpy array 
Python :: pandas append csv file 
Python :: python dataframe row count 
Python :: maxsize in python 
Python :: python save dictionary 
Python :: excel write in row 
Python :: how to make a python function 
Python :: python datetime format string 
ADD CONTENT
Topic
Content
Source link
Name
6+9 =