DEV Community

Onaolapo-11
Onaolapo-11

Posted on

As opposed to lists, we use tuples when we do not want the elements to be changed

Day 71 [November 16, 2025]

I need to buckle down, as I'm still lagging on day day 3 & 4 goals, "Day 3-4: Control structures (if-else, loops)", as well as day 5 (and 6) goals, "Day 5-6: Functions and modules", and Day 7 target (exercises) (Meta AI, personal communication, August 8, 2025). If I haven't covered this, I can't make progress on day 8 - 70 goals.

Goals:
As extracted from the 'Python for Software Development' textbook by Halvorsen (n.d.):

  • Plotting in Python ✅
  • Subplots✅
  • Exercises✅
  • If ... Else
  • Arrays
  • For Loops
  • Nested
  • For Loops
  • While Loops
  • Exercises
  • Creating Functions in Python - Introduction
  • Functions with multiple return values
  • Exercises
  • Creating Classes in Python
  • The init () Function
  • Exercises
  • Creating Python Modules
  • Exercises

Notes:
Python for Data Science, AI & Development Course (IBM) (Santarcangelo, n.d.):
Module 2: Python Data Structures

  • Lists and Tuples
  • Dictionaries
  • Sets

As opposed to lists, we use tuples when we do not want the elements to be changed (Sweigart, n.d.)

Summary:
As opposed to lists, we use tuples when we do not want the elements to be changed.

References:

  1. Halvorsen, H. (n.d.)._ Python_. https://halvorsen.blog/documents/programming/python/python.php#python4

  2. Santarcangelo, J. (n.d.). Python for data science, AI & development [MOOC]. Coursera. https://coursera.org/learn/python-for-applied-data-science-ai

  3. Sweigart, A. I. (n.d.). 4.12: Tuples vs. lists, immutable vs. mutable. In LibreTexts, Making games with python and pygame (Sweigart). https://eng.libretexts.org/Bookshelves/Computer_Science/Programming_Languages/Making_Games_with_Python_and_Pygame_(Sweigart)/04%3A_Memory_Puzzle/4.12%3A_Tuples_vs._Lists%2C_Immutable_vs._Mutable

Top comments (0)