DEV Community

SAINAPEI LENAPUNYA
SAINAPEI LENAPUNYA

Posted on

Day 1: My First Python Print Statement - 30 Days of Python Challenge

Welcome to My Python Journey!

Hey there, fellow coding enthusiasts! Today marks the beginning of my exciting 30 Days of Python Challenge, and I'm thrilled to have you join me on this adventure. Whether you're a complete beginner or someone looking to refresh their Python skills, this series is for you!

I'll be sharing my daily progress, lessons learned, and code snippets as I work through Python fundamentals. My goal? To make Python accessible, fun, and easy to understand for everyone.

Day 1: The Magic of print()

Today's focus is simple yet powerful: the print statement. Every programming journey starts with a simple "Hello, World!" and today, I'm taking that first step.

What I Learned

The print() function is your best friend when starting with Python. It's how your program talks to you! Think of it as Python's way of saying, "Hey, look at this!"

My Code

Here's what I wrote for Day 1:

print('My name is Sanaipei')
print("I love Python")
print("Data is my love language")
Enter fullscreen mode Exit fullscreen mode

Breaking It Down 🔍

Let me explain what's happening here:

  1. print('My name is Sanaipei') - This displays my name on the screen. Notice the single quotes? In Python, you can use either single (') or double (") quotes for strings.

  2. print("I love Python") - Here I'm using double quotes. Both work perfectly! Python doesn't care which you use, as long as you're consistent with opening and closing.

  3. print("Data is my love language") - Because who doesn't love data? 📊

Output

When you run this code, you'll see:

My name is Sanaipei
I love Python
Data is my love language
Enter fullscreen mode Exit fullscreen mode

Key Takeaways

  • print() is the function used to display output in Python
  • You can use both single (') and double (") quotes for strings
  • Each print() statement displays its content on a new line
  • This is your first step in communicating with your computer through code!

What's Next?

Tomorrow, I'll be diving into *variables *. We'll explore how to store information and make our code more dynamic and reusable.


Let's Connect!💬

I'd love to hear from you!

  • Are you also learning Python?
  • What was your first programming experience like?
  • Any tips or resources you'd recommend?

Drop a comment below and let's learn together! If you're following along with your own 30 Days of Python challenge, share your progress—I'd love to see it!

Don't forget to follow me for daily updates on this journey. Let's make these 30 days count! 💪

Happy Coding! 🎉

  • Sanaipei *

Top comments (0)