#! /usr/bin/env python
"this is a test module"
from random import choice
from string import ascii_letters,digits    #/usr/local/lib/python3.6/string.py

all_chs = ascii_letters + digits
def gen_pass(n=8):
    result = ''
    for i in range(n):
        ch = choice(all_chs)
        result += ch
    return (result)
if __name__ == '__main__':
    print(gen_pass())
#    print(gen_pass(4))
