π My Python Learning Journey β Day 1 to Day 8
I recently started learning Python from scratch with the goal of eventually moving into AI and Machine Learning.
I didn't know much about Python when I started, so I decided to learn it step by step and practice every day.
π What I Learned
Day 1 β Python Basics
I started with the basics:
print("Hello World")
print("I Am Harshit Baisoya")
print("I Started Learning AI")
I learned how the print() function works and how to run Python programs.
Day 2 β Variables & Basic Operations
I learned how to take numbers as input and perform basic calculations.
first_number = int(input("Enter First Number: "))
second_number = int(input("Enter Second Number: "))
addition = first_number + second_number
print("Addition =", addition)
I practiced:
- Addition
- Subtraction
- Multiplication
- Division
Day 3 β Input & Data Types
I learned about input(), int() and str().
For example:
age = int(input("What is your age? "))
print("Age is " + str(age))
This helped me understand the difference between strings and integers.
Day 4β6 β Conditions
Then I started learning decision-making using:
if
elif
else
I also learned comparison operators, %, and logical operators such as:
and
or
not
I practiced programs like checking whether a number is even or odd, finding the largest number, and checking eligibility based on conditions.
Day 7 β While Loops π
I learned how to repeat code using a while loop.
number = 1
while number <= 100:
if number % 3 == 0:
print(number)
number = number + 1
I also practiced counting numbers and finding multiples.
Day 8 β For Loops
Finally, I started learning for loops and range().
limit = int(input("Enter Limit: "))
count = 0
for number in range(1, limit + 1):
if number % 3 == 0:
print(number)
count = count + 1
print("Count =", count)
This was a really useful step because I can now repeat tasks using both while and for loops.
π― What's Next?
My goal isn't just to learn Python syntax.
I want to continue from Python β AI β Machine Learning and eventually build real projects.
I'm still a beginner, but I'm enjoying the process of learning something new every day. π»π₯
Day 1 β Day 8 completed.
Let's see where this journey takes me. π
Top comments (0)