number_hotdogs%10==0 and number_hotdogs%8==0
) нужно использовать переменные с этим числом, иначе зачем они тогда.SAUSAGES = 10
BUNS = 8
peoples = int(input('Введите количество участников пикника: '))
hotdogs = int(input('Введите количество хот-догов для каждого участника: '))
number_hotdogs = peoples*hotdogs
print('Общее количество хот-догов:',number_hotdogs)
sausages_bag, remainder = divmod(number_hotdogs, SAUSAGES)
if remainder != 0:
sausages_bag += 1
buns_bag, remainder = divmod(number_hotdogs, BUNS)
if remainder != 0:
buns_bag += 1
remaining_sausages = sausages_bag*SAUSAGES - number_hotdogs
remaining_buns = buns_bag*BUNS - number_hotdogs
SAUSAGES = 10
BUNS = 8
peoples = int(input('Введите количество участников пикника: '))
hotdogs = int(input('Введите количество хот-догов для каждого участника: '))
number_hotdogs = peoples*hotdogs
print('Общее количество хот-догов:',number_hotdogs)
sausages_bag = number_hotdogs // SAUSAGES
if number_hotdogs % SAUSAGES != 0:
sausages_bag += 1
buns_bag = number_hotdogs // BUNS
if number_hotdogs % BUNS != 0:
buns_bag += 1
remaining_buns = buns_bag*BUNS - number_hotdogs
remaining_sausages = sausages_bag*SAUSAGES - number_hotdogs
from datetime import datetime
dt = datetime.utcfromtimestamp(350)
formated_time = dt.strftime('%H часов, %M минут')
print('Осталось', formated_time)
print(dt.minutes, dt.hours) # и тд
for i in role.members:
?async def report(ctx, member: discord.Member, *, arg):
role = ctx.guild.get_role(9999999999999)
users = ctx.guild.members
await ctx.channel.send('Your complaint was sent to moderators!', delete_after=10)
for user in users:
if role in user.roles:
await user.send(f'{ctx.author.mention} оставил жалобу на {member.mention} с причиной:\n**{arg}**')