Computer Science · Python Fundamentals

Computer Science — Python Fundamentals

Rehearse Python’s everyday building blocks: core collections, control flow, functions, and exceptions.

20 cardsBeginnerFoundational
A focused review

Topics covered

  • Lists, tuples, sets, and dictionaries
  • Control flow
  • Functions
  • Exceptions
  • Identity and equality
Pythonprogrammingfunctionsdata structurescomputer science
Take a look inside

Card preview

Showing 5 of 20
Question 01What is the difference between a list and a tuple in Python?
Answer

Both are ordered sequences; lists are mutable, while tuples are immutable.

Question 02What does a Python dictionary store?
Answer

Key-value pairs, with unique hashable keys mapping to values.

Question 03What property makes a set useful?
Answer

It stores unique hashable elements and supports membership tests and set operations.

Question 04What does a list index of -1 refer to in Python?
Answer

The final element of the list, if the list is not empty.

Question 05What does the slice items[a:b] include?
Answer

Elements from index a up to, but not including, index b.

Import the deck you downloaded

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.

  1. 1
    Download the JSON deck

    Save the file to your device.

  2. 2
    Open Rivio → Flashcards → Import Deck

    Choose the downloaded file and select a subject or deck destination.

  3. 3
    Check the import preview

    Question and answer fields are suggested for this format. Review the cards, then import.

  4. 4
    Start 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 Play

Sources for further study

Use these references to check definitions and connect the cards to your course material.