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")
Output:
I am Sanaipei Lenapunya
I love Python
I love dancing in the rain
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"
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)