Unused variable clean-up I'm fairly new to programming and I'm learning python.
I've defined a function for a dice roll and set it up to roll multiple.
def d20(num):
    rolls = 0
    for i in range(num):
        rolls += randint(1,20)
    return rolls

Thonny and my assistant tab gives me a warning:
Line 3: Unused variable 'i'

The code works fine but I like a clean workspace. I was wondering if there is an alternate way to write the range loop or is this just something I need to learn to deal with?
Use an underscore _ instead of i