Underscore “_”: Ignore the index in Python for loops

Underscore “_”: Ignore the index in Python for loops

If you want to repeat a loop a specific number of times but don’t care about the index, you can use _. Above is an example.

Search

Scroll to Top

Work with Khuyen Tran

Work with Khuyen Tran