O Level Exam : Practical Question
📝 HTML
🎨 CSS
⚡ Java Script
lst=eval(input("Enter a list : ")) print("List before Rotation :",lst) a=lst[0] s=len(lst) for i in range(1,s): lst[i-1]=lst[i] lst[s-1]=a print("List after Rotate :",lst)
▶ Run Code
🖥 Output: