0 of 9 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 9 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)
You have the potential to do better! 🙂
If you found a concept confusing on this page then please leave a comment below asking for clarity.
Try re-reading the tutorial on this page before you retake this quiz!
Good work on clearing this quiz!
Outstanding work! You have mastered this lesson. Onward to the next one!
What is the output of the following?
  print(‘abcdefcdghcd’.split(‘cd’, 2))
What is the output of the following?
  print(‘ab cd-ef’.title())
The ____________ function removes the first element of a set and the last element of a list.
The difference between the functions discard and remove is that:
What is the output of this code?
s1={1, 2, 3, 8}
s2={3, 4, 5, 6}
s1|s2
s1.union(s2)
count={}
count[(1,2,4)] = 5
count[(4,2,1)] = 7
count[(1,2)] = 6
count[(4,2,1)] = 2
tot = 0
for i in count:
   tot=tot+count[i]
print(len(count)+tot)
What is the output of the following piece of code?
>>> a={‘B’:5,’A’:9,’C’:7}
>>> sorted(a)
What is the output of the following snippet of code?
>>> a={i: i*i for i in range(6)}
>>> a
>>> a=2,3,4,5
>>> a