Answers for "16 digit number generate on python"

0

16 digit number generate on python

# Python3 code to demonstrate 
# generating random strings  
# using random.choices() 
import string 
import random 
  
# initializing size of string  
N = 7
  
# using random.choices() 
# generating random strings  
res = ''.join(random.choices(string.ascii_uppercase +
                             string.digits, k = N)) 
  
# print result 
print("The generated random string : " + str(res))
Posted by: Guest on February-12-2021

Code answers related to "16 digit number generate on python"

Python Answers by Framework

Browse Popular Code Answers by Language