string.ascii_uppercase + string.digits
import random
import string
a=''.join(random.choice(string.ascii_letters + string.digits) for x in range(n))
print(a)
a=''.join(random.choice(string.ascii_uppercase) for x in range(n))
a=''.join(random.choice(string.ascii_lowercase) for x in range(n))
a=''.join(random.choice(string.digits) for x in range(n))
def is_conditions_for_some_shit_pass(m):
return ((m.text in '/Ethash' and len(m.text)>7)
or (m.text in '/DCR' and len(m.text)>3)
or (m.text in '/SIA' and len(m.text)>3)
# ....
or (m.text in 'ETH+PASL' and len(m.text)==8)
or (m.text in 'ETH+DCR' and len(m.text)==7))
#####
if is_conditions_for_some_shit_pass(m):
pass