list = [500,400,30]
removing = list.remove(0)
shift_left = removing.extend('0')
print(shift_left)
Traceback (most recent call last):
File "C:/code/python/week08/selflearn01.py", line 3, in <module>
shift_left = removing.extend('0')
AttributeError: 'NoneType' object has no attribute 'extend'
Im trying to do a list of 3 numbers in it and the first number (index 0) need to move to the last number (to became index 2) for example: list = [500,400,30] and it supposed to print after everything [400,500,30]