Computer Science — Python Fundamentals
Rehearse Python’s everyday building blocks: core collections, control flow, functions, and exceptions.
Topics covered
- Lists, tuples, sets, and dictionaries
- Control flow
- Functions
- Exceptions
- Identity and equality
Card preview
Question 01What is the difference between a list and a tuple in Python?
Both are ordered sequences; lists are mutable, while tuples are immutable.
Question 02What does a Python dictionary store?
Key-value pairs, with unique hashable keys mapping to values.
Question 03What property makes a set useful?
It stores unique hashable elements and supports membership tests and set operations.
Question 04What does a list index of -1 refer to in Python?
The final element of the list, if the list is not empty.
Question 05What does the slice items[a:b] include?
Elements from index a up to, but not including, index b.
Import this deck into Rivio
The downloaded JSON uses Rivio's deck_name, question, and answer format. Rivio recognizes those fields and suggests them automatically.
- 1Download the JSON deck
Save the file to your device.
- 2Open Rivio → Flashcards → Import Deck
Choose the downloaded file and select a subject or deck destination.
- 3Check the import preview
Question and answer fields are suggested for this format. Review the cards, then import.
- 4Start reviewing
Open the imported deck in Rivio and practise recall.
The preview shows a sample of the deck. The download contains all 20 cards.
Get Rivio on Google PlaySources for further study
Use these references to check definitions and connect the cards to your course material.