DEV Community

Harshit Baisoya
Harshit Baisoya

Posted on

My First Post

πŸš€ 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")
Enter fullscreen mode Exit fullscreen mode

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)
Enter fullscreen mode Exit fullscreen mode

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))
Enter fullscreen mode Exit fullscreen mode

This helped me understand the difference between strings and integers.

Day 4–6 β€” Conditions

Then I started learning decision-making using:

if
elif
else
Enter fullscreen mode Exit fullscreen mode

I also learned comparison operators, %, and logical operators such as:

and
or
not
Enter fullscreen mode Exit fullscreen mode

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
Enter fullscreen mode Exit fullscreen mode

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)
Enter fullscreen mode Exit fullscreen mode

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. πŸš€

Python #Programming #AI #MachineLearning #100DaysOfCode #LearningInPublic

Top comments (0)