- 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 9 times
After this Python code is executed: def rotate (lis): lis.append(lis[0]) del (lis[0]) my_list = ['a', 'b', 'c'] rotate (
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
After this Python code is executed: def rotate (lis): lis.append(lis[0]) del (lis[0]) my_list = ['a', 'b', 'c'] rotate (
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']