Answer the question
In order to leave comments, you need to log in
Python arrays do not plow need help, what should I do?
massive = array('i', [])
from random import choice
from string import digits
string.ascii_letters # Подключение ASCII символов
'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'
a = 10
count = 0
while count < a:
num_or_letter = random.randint(1, 2)
if num_or_letter < 2:
massive.append(random.choice(string.ascii_letters))
else:
massive.append(random.randint(0, 9))
count + 1
print(massive)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question