Сообщество IT-специалистов
Ответы на любые вопросы об IT
Профессиональное развитие в IT
Удаленная работа для IT-специалистов
k = 1 a = [] for i in range(3): a.append([]) for array in a: array.append(k) k += 1 for array in a: print(*array)
from moviepy.editor import * clip = (VideoFileClip("video.mp4") .subclip((1,22.65),(1,23.2)) .resize(0.3)) clip.write_gif("annimation.gif")
array = [[3,4],[1,11],[2,5],[6,7]] for elem in array: elem.reverse() print(array)
a = [i for i in range(100)] b = [] for elem in a: if elem % 3 == 0 and elem % 7 == 0: b.append(elem) print(sum(b))
async def some_func(): while True: print("OK") await str(input("Какойто текст:")) some_func()
mass = [ [1,2], [4, 5], [5, 6], [7, 8] ] result = [] for elem in mass: result.append(elem[0]) result.append(elem[1]) print(result)
one = [1,2,3,4,5] two = ['a','b','c','d','e'] result = [] for i in range(len(one)): result.append(one[i]) result.append(two[i]) print(result)