1"""
2This error means the variable you want to subscript is an integer.
3
4if you want to subscript an int, a way of doing that is turning it to str.
5"""
6num = 1234
7x = num[2] # does not work
8x = int(str(num)[2]) # works, x = 3
1'''
2This error occurs when you try to use the integer type value as an array.
3
4In simple terms, this error occurs when your program has a variable that is
5treated as an array by your function, but actually, that variable is an integer.
6'''