After this Python code is executed: def rotate (lis): lis.append(lis[0]) del (lis[0]) my_list = ['a', 'b', 'c'] rotate (
Posted: Tue May 24, 2022 8:29 am
After this Python code is executed: def rotate (lis): lis.append(lis[0]) del (lis[0]) my_list = ['a', 'b', 'c'] rotate (my_list) which of the following statements are true? my_list[-2] is equal to 'c' my_list is equal to ['b', 'c, 'd'] The length of list my_list is 3 Function call rotate(my_list) cannot modify list my_list my_list is equal to ['b', 'c', 'a']