🐍 Day 23 – Introduction to Python Lists, Tuples & Dictionaries

As part of strengthening my automation and scripting foundation for DevOps, today I took the first step into Python β€” focusing on understanding the basic building blocks of data handling in the language:


πŸ“Œ What I Explored

βœ… Lists

  • Ordered, mutable collections

  • Created using square brackets []

fruits = ["apple", "banana", "cherry"]

βœ… Tuples

  • Ordered, immutable collections

  • Created using parentheses ()

coordinates = (10, 20)

βœ… Dictionaries

  • Key-value pairs

  • Created using curly braces {}

user = {"name": "Shaharyar", "role": "DevOps Learner"}

πŸ’‘ Why It Matters for DevOps

Python is everywhere in automation β€” from writing infrastructure scripts to CI/CD tools like Ansible or Jenkins pipelines. Getting comfortable with data types early on helps a lot in building logic for those tools.


🧠 What’s Next?

Next, I’ll be learning:

  • json

  • yaml

πŸ“˜ This is part of my DevOps as a Beginner series
Follow along daily as I document my DevOps journey from zero to pro!

#Python #DevOps #LearningInPublic #100DaysOfDevOps #BeginnerToPro #HashnodeSeries

0
Subscribe to my newsletter

Read articles from Shaharyar Shakir directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Shaharyar Shakir
Shaharyar Shakir