how to make a new variable in python code example
Example 1: 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()
Example 2: how to create a variable in python
variable1 = "value" # string
variable2 = 1000000 # integer
variable3 = 10000.0 # real/float
variable4 = True # boolean: True or False