Python 101 Blog Series
What is Python?
Python is a versatile and widely-used programming language created by Guido van Rossum and first released in 1991. Known for its simplicity and readability, Python feels as intuitive as the English language. It supports multiple programming paradigms, including procedural, object-oriented, and functional programming.
Python is cross-platform, meaning it works seamlessly on Windows, Mac, Linux, and even Raspberry Pi.
What Can Python Be Used For?
Python is a multipurpose language, powering applications in diverse fields such as:
- Software Development
- Web Development
- Mobile App Development
- Game Development
- Data Science
- Machine Learning & Artificial Intelligence
- Task Automation
- Building Bots
Its versatility and extensive libraries make it a top choice for beginners and experts alike!
01# First Python Program: print()
The print()
function is one of the most basic yet powerful features of Python. It’s used to display output on the screen, whether it’s the result of a calculation or a message wrapped in single or double quotes.
Below are a few examples to help you get started:
Example #1: Simple Math
print(2 + 3)
# This will display the sum of 2 and 3, which is 5.
Example #2: Hello, World!
print("Hello, World!")
# The classic first program that every new programmer writes.
Example #3: Using Single and Double Quotes
print("I'm learning Python with 'Saadat'")
# Single quotes can be used inside double quotes without escaping.
Example #4: Printing Multiple Arguments
print("Hello", "how are you?")
# Outputs: Hello how are you? (notice the space between the arguments)
Bonus Tip:
You can customize the behavior of print()
using its parameters:
print("Hello", "World", sep="-", end="!")
# Outputs: Hello-World!
Next Steps
Now that you’ve learned how to use the print()
function, start experimenting with your own variations. Try printing numbers, strings, or even emojis!
Start your Python journey today and stay tuned for the next blog in the Python 101 Blog Series!