for i in range(1, 5):
# выводит верхнюю последовательность чисел
print("\t", i, end="")
for j in range(1, 5):
# выводит боковую последовательность чисел
print()
F = True
for i in range(1, 5):
# последовательности перемножаются
z = i * j
if F:print(j, end="")
print("\t", z, end="")
F = False
import keyboard
import pyautogui as auto
import sys
def s():
while not keyboard.is_pressed('t'):
auto.tripleClick( button = 'left' )
keyboard.wait('e', s)
ll = [1, 0, 1, 1, 0, 1, 0, 1, 1]
answeк = []
for i in ll:
if i == 0:
continue
elif i == 1:
if len(answer) >= 3:
break
else:
answer.append(i)
from random import randint
random_number = ""
while len(random_number) < 4:
a = str(randint(0, 9))
if a not in random_number:
random_number += a
import os
from PIL import Image
for i in os.listdir('C:\\Users\\user\\Desktop\\image'):
img=Image.open(i)
img.save(i, format="JPEG", quality=30)
longpoll = VkBotLongPoll(bot_session, "мой айди")
while True:
event.object.text
заменить на event.obj.text