DEV Community

SAINAPEI LENAPUNYA
SAINAPEI LENAPUNYA

Posted on

100 Days of Python: Day 1 Kick Off with print()!

Welcome to Day 1 of my 100 Days of Python challenge! I’m Sanaipei Lenapunya and today I’m starting with the basics:

The print() function
print() is Python’s way of talking to you.It displays text in the console,making it perfect for seeing your code come to life.

Here’s what I tried today:

print("I am Sanaipei Lenapunya")
print("I love Python")
print("I love dancing in the rain")
Enter fullscreen mode Exit fullscreen mode

Output:

I am Sanaipei Lenapunya
I love Python
I love dancing in the rain
Enter fullscreen mode Exit fullscreen mode


My Workflow

After writing the code, I saved it in day1(print()).py. Then, I pushed it to my GitHub repo with:

git add print.py
git commit -m "On day 1 learnt the print() method"
Enter fullscreen mode Exit fullscreen mode


Try It Yourself!!

Type your own print() statement below and see it in action (copy it to your Python editor or try it in an online Python console):

Run It!

Mini-Challenge:
Write a print() statement with your favorite hobby or fun fact. Share it in the comments below!

Tomorrow,I’m diving into variables on Day 2.Follow along for more Python fun!

Top comments (0)