# Использование цикла for for_list = [] for i in range(10): for_list.append(i) print(for_list) # Использование цикла while while_list = [] i = 0 while i < 10: while_list.append(i) i += 1 print(while_list)