Ksenia 1 месяц назад
Родитель a33b03a892
Сommit 9e8814824b

@ -3,3 +3,11 @@ nm=(12,23,34,14,-7,-34)
a = sum(nm[:3])
b = sum(nm[3:])
print(a - b)
import os
from os.path import isdir
f = open('a.txt', 'w+')
f.write('text')
f.close()
with ope

@ -101,35 +101,33 @@ l = []
for i in range(0, 125, 5):
l.append(list(str_tup[i:i + 5]))
for i in range(25):
list_name = f"list{i + 1}"
globals()[list_name] = l[i]
print(f"{list_name} = {l[i]}")
print(f"list{i + 1} = {l[i]}")
```
_Вывод:_
```py
list1 = ['49', '46', '53', '24', '54']
list2 = ['8', '47', '48', '43', '43']
list3 = ['9', '8', '43', '14', '39']
list4 = ['17', '49', '47', '34', '18']
list5 = ['37', '39', '17', '30', '9']
list6 = ['19', '56', '8', '15', '36']
list7 = ['31', '52', '20', '26', '40']
list8 = ['15', '14', '29', '37', '48']
list9 = ['55', '16', '36', '34', '53']
list10 = ['10', '26', '37', '10', '53']
list11 = ['48', '49', '33', '38', '44']
list12 = ['33', '23', '18', '54', '8']
list13 = ['19', '42', '49', '18', '8']
list14 = ['22', '16', '9', '14', '54']
list15 = ['29', '9', '52', '55', '13']
list16 = ['27', '13', '46', '29', '13']
list17 = ['11', '37', '20', '21', '24']
list18 = ['27', '53', '39', '25', '40']
list19 = ['20', '33', '15', '24', '33']
list20 = ['18', '40', '35', '11', '52']
list21 = ['44', '10', '53', '29', '35']
list22 = ['42', '8', '42', '18', '19']
list23 = ['6', '55', '23', '34', '49']
list24 = ['46', '10', '20', '46', '26']
list25 = ['43', '25', '43', '29', '12']
list1 = ['43', '47', '53', '54', '35']
list2 = ['10', '21', '16', '26', '54']
list3 = ['55', '8', '15', '47', '56']
list4 = ['21', '9', '18', '20', '8']
list5 = ['25', '48', '28', '28', '12']
list6 = ['16', '41', '13', '18', '6']
list7 = ['50', '15', '51', '36', '31']
list8 = ['46', '33', '12', '8', '9']
list9 = ['49', '50', '45', '41', '14']
list10 = ['56', '13', '31', '45', '30']
list11 = ['45', '37', '12', '35', '50']
list12 = ['13', '54', '17', '19', '33']
list13 = ['39', '28', '56', '10', '18']
list14 = ['23', '20', '43', '17', '14']
list15 = ['29', '17', '44', '7', '41']
list16 = ['9', '51', '25', '21', '26']
list17 = ['51', '18', '10', '31', '48']
list18 = ['23', '49', '54', '25', '18']
list19 = ['8', '46', '37', '22', '28']
list20 = ['11', '6', '37', '34', '11']
list21 = ['6', '17', '38', '45', '46']
list22 = ['30', '15', '7', '20', '45']
list23 = ['54', '47', '24', '30', '18']
list24 = ['48', '36', '8', '14', '32']
list25 = ['35', '52', '39', '39', '10']
```

@ -32,6 +32,4 @@ l = []
for i in range(0, 125, 5):
l.append(list(str_tup[i:i + 5]))
for i in range(25):
list_name = f"list{i + 1}"
globals()[list_name] = l[i]
print(f"{list_name} = {l[i]}")
print(f"list{i + 1} = {l[i]}")

Загрузка…
Отмена
Сохранить