Only two test cases are passing

@kundankumarsports2 modify your code for k >= n

i made changes please look into it

@kundankumarsports2 please share the updated code.
To be clear, all you have to do is, make k = k % n so that k becomes less than n, and your function will not need any changes. Also, you need to ensure that your code is working for k = 0 (for that you can simply not call the k_append function and print the list as it is).

i modified in the same code please check it and modify it

@kundankumarsports2 a new link is generated after you modify and save the code again, so you need to share the new link (i cannot see updates from previous link)

@kundankumarsports2 what your current change will do is, not make any changes at all if k > n, but that is wrong. I already explained above what needs to be done. I have modified your code here

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.