"""
Generate a random password of eight characters long.
A password consist of lower case letters of the alphabet,
situated in the range from 97 to 122 of the ASCII code
and decimal digits in the range from 0 to 9.
Every password has 2 digits and 6 letters, placed at random.
Use list comprehensions to solve this problem.
"""
from random import randint, shuffle

NUMBERS = [randint(0, 9) for k in range(2)]
LETTERS = [randint(ord('a'), ord('z')) for k in range(6)]
STRLET = [chr(x) for x in LETTERS]
STRNUM = [str(x) for x in NUMBERS]
CHARACTERS = STRLET + STRNUM
shuffle(CHARACTERS)
PASSWORD = ''.join(CHARACTERS)
print(PASSWORD)
