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

Table of Contents

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.

Scroll to Top

Work with Khuyen Tran

Work with Khuyen Tran