Python 101 - Guide to Python Programming

Python 101 - Guide to Python Programming
Python 101 Blog Series

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:

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!




Getting Info...

About the Author

Hey! It's Saadat Khalid Awan, a Freelance Content Writer | Copywriter | Blogger, and Data Scientist. I'm very enthusiastic about writing. I enjoy the writing process because words have a magical power that can do wonders.

إرسال تعليق

Cookie Consent
We serve cookies on this site to analyze traffic, remember your preferences, and optimize your experience.
Oops!
It seems there is something wrong with your internet connection. Please connect to the internet and start browsing again.
AdBlock Detected!
We have detected that you are using adblocking plugin in your browser.
The revenue we earn by the advertisements is used to manage this website, we request you to whitelist our website in your adblocking plugin.