0 of 5 questions completed
Questions:
You have already completed the quiz before. Hence you can not start it again.
Quiz is loading…
You must sign in or sign up to start the quiz.
You must first complete the following:
0 of 5 questions answered correctly
Your time:
Time has elapsed
You have reached 0 of 0 point(s), (0)
Earned Point(s): 0 of 0, (0)
0 Essay(s) Pending (Possible Point(s): 0)
How To Remove Duplicates From a List in Python?
Give one example
This response will be reviewed and graded after submission.
What will be the output of the following code snippet?
a=[1,2,3,4,5,6,7,8,9] print(a[::2])
What will be the output of the following code snippet?
def f(value, values): v = 1 values[0] = 44 t = 3 v = [1, 2, 3] f(t, v) print(t, v[0])
What is the correct command to shuffle the following list?
fruit=['apple', 'banana', 'papaya', 'cherry']
What will be the output of the following code snippet?
fruit_list1 = ['Apple', 'Berry', 'Cherry', 'Papaya'] fruit_list2 = fruit_list1 fruit_list3 = fruit_list1[:] fruit_list2[0] = 'Guava' fruit_list3[1] = 'Kiwi' sum = 0 for ls in (fruit_list1, fruit_list2, fruit_list3): if ls[0] == 'Guava': sum += 1 if ls[1] == 'Kiwi': sum += 20 print (sum)