N
N
nikto_2112021-11-04 19:01:00
Python
nikto_211, 2021-11-04 19:01:00

How to find out how much is left for r in range?

@bot.command()
async def night(ctx, amount=5):
    for r in range(amount):

There is a cycle that is set by the command, how can I find out with the help of the command how many times it has already been executed

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Python Newbie, 2021-11-04
@Levman5

for r in range(amount):
    print(r)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question