Python program to right rotate a list by n
Given a list and an integer n, write a Python program to right-rotate the list by n position. Examples : Input : n = 2, List_1 = [1, 2, 3, 4, 5, 6]Output : List_1 = [5, 6, 1, 2, 3, 4]Explanation: We get output list after right rotating (clockwise) given list by 2. Input : n = 3, List_1 = [3, 0, 1, 4