Rotate number in python

error object is not scruptable

l1 = []
num = input()
for i in num:
l1.append(int(i))

def rotate(times, number=l1):
times //= len(number)
if times < 0:
times += len(number)
temp = l1[len(number) - 1]
for idx in range(len(number) - 2, 0, -1):
l1[idx + 1] = len[idx]
len[0] = temp

rotate(4, l1)
print(l1)

Hello bro, you have written len[idx] and len[0] what do you mean by this. len() is an in built function used to find the length of the list or the tuple. So we can not use len like this any list.
I hope you understand this in case it is clear to you pls mark it as resolve and provide the ratings and feedback so that we can improve our services.
In case you want to ask something you can surely ask I will help you out.
Thanks :slight_smile:
Happy Coding !!

Instead of this you can define any other list with the other name