Data Types and Structures in Python

In this week’s workshop, we will explore the core data types and data structures available in Python. Understanding how Python handles data is essential for effective programming, data analysis, and building complex applications.

Lab Logo Introduction

Live Logo Live coding

Review the material that we explored in Week 3’s live-coding session.

Lab Logo Lab

Exercise: Practice with Python data types and structures


Your task is to:

  1. Create variables of different types:
    • integer
    • float
    • string
    • boolean.
  2. Create:
    • A list of five Nigerian states.
    • A tuple with three currency codes.
    • A set of unique student IDs.
    • A dictionary mapping student names to scores.
  3. Commit and push your work to GitHub.

Lab Logo Further reading