IN PYTHON COMPREHENSIVE EXAMINATION
TEST 2026 COMPLETE QUESTIONS AND
ANSWERS
◉ Len(). Answer: Returns the number of characters in a text string
◉ Set(). Answer: unordered collection of unique elements.
• Elements are unordered: Elements in the set do not have a position or
index.
• Elements are unique: No elements in the set share the same value.
◉ How to add elements to a set. Answer: set.add(value)
Ex: my_set.add('abc')
◉ How to remove random item from a set. Answer: set.pop()
Ex: my_set.pop()