Сообщество IT-специалистов
Ответы на любые вопросы об IT
Профессиональное развитие в IT
from random import randint @bot.message_handler(commands=['random']) def random(message): num = randint(0, 100) bot.send_message(message.chat.id, str(num))
python
import
Button: text: "Кнопка" size: <ваш_размер>, <ваш_размер> size_hint: None, None
while True: try: print(eval(input('>>> '))) except: pass
import time def age_differences(age2): age1 = 21 difference = age1 - age2 if age2 != age1: print("Есть разница в возрасте!") time.sleep(1) print("Разница составляет ", difference)
a = float(input()) b = a * 1.8 + 32 print(b)
await msg.edit_text(f'{name}: <b>{price}</b> ' + '\n' + f'Кол-во обновлений было: {i+1}')
i
"os.walk" исключение директорий?
n = sorted(list(map(int, sum([input().split(' ') for i in range(int(input()))], [])))) print(' '.join(map(str, n)))
INFO
client = discord.Client(intents=discord.Intents.default())
while True:
for i in range(3): print('\b', flush=True, end='') print(i)