avoiding Line 7: IndexError: list index out of range with a for loop code example
Example: python list index out of range
#this will result in an IndexError
arr = ['item',1,None,'hi']
error = arr[10]
#this will result in an IndexError
arr = ['item',1,None,'hi']
error = arr[10]