# калькулятор дебильный
from colorama import Fore, Back, init
# use Colorama to make Termcolor work on Windows too
init()
while True:
print (Fore.BLACK,Back.WHITE)
what = input("Что делаем? (+,-): " )
print (Back.CYAN)
a = float( input("Введи первое число: " ))
b = float( input("Введи второе число: "))
print (Back.RED)
if what == "+":
r = a + b
print("результат: " + str(r))
elif what == "-":
r = a - b
print("результат: " + str(r))
else:
print("Не та опирация")
break
photo = types.InputFile(path_or_bytesio=files)
async def hellopicture(dp: Dispatcher):
img_path = 'C:/Users/andis/Desktop/Python/EasyBot/Picture'
files = random.choice(list(os.walk(img_path))[0][-1])
img = open(f'{img_path}/{files}', 'rb')
print(img)
img.close()
photo = types.InputFile(path_or_bytesio=f'{img_path}/{files}')
await dp.bot.send_photo(config.GROUP_ID, photo=photo)