Page 1 of 1

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
by answerhappygod
After This Python Code Is Executed Def Rotate Lis Lis Append Lis 0 Del Lis 0 My List A B C Rotate 1
After This Python Code Is Executed Def Rotate Lis Lis Append Lis 0 Del Lis 0 My List A B C Rotate 1 (82.57 KiB) Viewed 11 times
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']