MaxHeap
0
Q:

python raandom string

# 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)) 
5

New to Communities?

Join the community