Quiz
Python Sets Quiz
A set keeps each item only once and in no particular order: the moons a probe has already photographed, the tools a rover carries, the planets two missions have visited. That makes sets the quickest…
9 results
Quiz
A set keeps each item only once and in no particular order: the moons a probe has already photographed, the tools a rover carries, the planets two missions have visited. That makes sets the quickest…
Quiz
…the front and the back, slicing, len() and in Changing items, append() , insert() and extend() Removing items with pop() and remove() sort() vs sorted() , min() , max() and sum() Copying a list, and…
Quiz
…a tuple is made, you cannot add, remove or replace its items. This free quiz has 15 short questions on creating, reading and unpacking tuples in Python, on what you can and cannot do with them, and on…
Quiz
Free beginner quiz on Python while loops: 15 questions on conditions, counters, infinite loops, break and continue, with instant answers.
Quiz
…keyword arguments with get() and looping over them with items() Unpacking a tuple, a string or a dictionary into a call with * and ** Passing *args and **kwargs on to another function How it works 15…
Quiz
…, pop() and del Looping with keys() , values() and items() Counting with a dictionary, lists inside dictionaries and nested dictionaries How it works 15 questions: 11 with one correct answer, 4 where…
Quiz
…code runs? What does this code print? Which type keeps its items in order and lets you add, remove and change them? Which of these create a dict ? What does this code print? What does this code print?…
Quiz
…of the right type that still cannot be used, such as an item that is not in a list IndexError and KeyError : positions and keys that do not exist ZeroDivisionError , and reading an error message to…
Quiz
A for loop repeats the same steps for every item: every planet in a list, every second of a countdown, every letter in a word. This free quiz has 15 short questions that check you can predict how many…