# Days 1–7 of My Python Journey πŸš€

Daxa SondarvaDaxa Sondarva
2 min read

πŸ‘‹ Hello, World! I’m Daxa Sondarva

I’ve started my #100DaysOfCode challenge to build strong Python skills from scratch.
I'm passionate about learning in public, staying consistent, and sharing what I learn with others.

This blog is a recap of what I’ve learned during Day 1 to Day 7, covering Python fundamentals step-by-step.
Let’s dive in and learn together! πŸ“–

✨ Days 1–7 Python Learning Overview

Over the first 7 days of my #100DaysOfCode challenge, I built a solid foundation in Python.

πŸ”Ή I started with the very basics – understanding how print() works, creating variables, and exploring data types like integers, floats, strings, and booleans.

πŸ”Ή I learned how to take user input using input(), and then used type conversion like int() and float() to work with numbers. I also practiced f-strings for clean and readable output.

πŸ”Ή Then came the operators – I explored: β€’ Arithmetic operators: +, -, *, /, //, %, **
β€’ Comparison operators: ==, !=, >, <, >=, <=
β€’ Logical operators: and, or, not
β€’ Assignment operators: =, +=, -=, *=, etc.

πŸ”Ή I practiced writing programs using conditional statements like if, elif, and else – helping Python make decisions just like we do.

πŸ”Ή I moved on to loops, using the for and while loop along with the range() function. I experimented with: β€’ Custom start/stop/step β€’ Reversing with negative step β€’ Looping through strings and lists with len()

πŸ”Ή After getting comfortable with loops, I created patterns using stars (*) and numbers: β€’ Right-Angled Triangle
β€’ Number Triangle
β€’ Solid Rectangle
β€’ Reverse Star Pattern
β€’ Hollow Square
β€’ Printed the letter β€œD” using a custom matrix

πŸ”Ή I also learned about Scope in Python β€” where a variable can be accessed using the LEGB Rule: β€’ Local
β€’ Enclosing
β€’ Global
β€’ Built-in

Here's a quick example of scope:

x = "global"

def outer():
    x = "enclosing"

    def inner():
        x = "local"
        print(x)

    inner()

outer()

πŸ” Scope Diagram (LEGB Rule):

πŸ”΅ Built-in
β”‚   β†’ len(), print()
β”‚
β”œβ”€β”€ πŸ”΄ Global
β”‚   β†’ x = "Global"
β”‚
β”œβ”€β”€β”€β”€ 🟠 Enclosing
β”‚   β†’ def outer(): x = "Enclosing"
β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€ 🟒 Local
β”‚   β†’ def inner(): x = "Local"

πŸ™‹β€β™€οΈ Let’s Connect

Feel free to reach out, follow my journey, or collaborate!

πŸ”— Connect with me on LinkedIn

πŸ“ You can find all my Python code, day-wise, on GitHub:
πŸ”— github.com/Daxa-sondarva/python-learning

I'm learning in public to build confidence, stay accountable, and maybe even inspire someone else to begin! πŸ’ͺ

0
Subscribe to my newsletter

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

Written by

Daxa Sondarva
Daxa Sondarva

Python Learner | #100DaysOfCode πŸš€ Sharing my learning journey through code, blogs, and handwritten notes ✍️ Aspiring Python Developer | Exploring Data & Logic πŸ’» Let's learn in public and grow together! 🌱