python – What is the meaning of for _ in range()

python – What is the meaning of for _ in range()

When you are not interested in some values returned by a function we use underscore in place of variable name . Basically it means you are not interested in how many times the loop is run till now just that it should run some specific number of times overall.

python – What is the meaning of for _ in range()

Leave a Reply

Your email address will not be published. Required fields are marked *