100 Days of Code — Python

Khadija Batool Gardezi
2 min readMar 7, 2023

--

Welcome to my blog where I’ll be documenting my journey through “100 Days of Code” — I’ve always been fascinated by the possibilities that coding offers, and the impact it has on various industries.

Through this challenge, I’ll be sharing the fundamentals of Python, one of the most popular programming languages used today.

Remember, what may seem easy and quick to finish for me, may take a little longer for you especially if you’re new to programming. But don’t get discouraged, stick with it and with time and practice, you’ll be surprised at what you can achieve.

I’ll be sharing my progress, challenges, and insights in this blog, in hopes of inspiring others who are also looking to start their coding journey in Pyton.

So let’s get started and see where this adventure takes us! 🙌🏻

Day #1

  • Printing
  • Commenting
  • Debugging
  • String Manipulation
  • Variables

In Python, print() is a function that allows us to output text or values to the console.


# This is a single-line comment

'''
This is a multi-line comment
...
.......
'''

# Variable
name = "Dj"
age = 14


# Program

name = "Dj"
age = 14
print("My name is", name, "and I am", age, "years old.")


#Output

My name is Dj and I am 14 years old.

Commenting is a way to add notes to your code that are ignored by the browsers. This allows you or other coders who may read your code in the future to understand what your code does.

Variable is a container that stores a value or a reference to a value. The value can be of any data type such as numbers, strings, lists, or even objects.

Keep learning, stay curious, and don’t give up on your goals.

“The only way to do great work is to love what you do.”
- Steve Jobs

--

--

Khadija Batool Gardezi

Dev — SignalWire |GitHub Campus Expert // Google DSC // MLSA |