I am getting run error for the last two cases

I am not sure why i am getting run error in the last two cases

hello @KushagraNITJ
pls share ur code using cb ide

length=int(input())
astr=input()
k=int(input())
alist=astr.split(" “)
i=0
while i<k:
popped=alist.pop()
alist.insert(0,popped)
i+=1
for i in range(length):
print (int(alist[i]),end=” ")

share it using cb ide.
idententation matters a lot in python ,this direct sharing will remove all indentation and may introduce some more errors

I don’t know how to do that

go to this link -> https://ide.codingblocks.com/

paste ur code in the editor

press ctrl + s and save ur code
a link will be generated in ur search bar , share it with me

https://ide.codingblocks.com/s/364379 can you open it

a) do this to keep value of k less than n
k=k%length

b) instead of using input() for reading line .
read n elements one by one (becuase in input file all elements are not in single line)

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.