Python Introduction


What is Python?

Python is a widely-used programming language created by Guido van Rossum and released in 1991. It is known for its simple syntax and powerful features, making it ideal for both beginners and professionals.

You can use Python for:

  • Web development (server-side)

  • Software development

  • Data analysis and mathematics

  • Automation and system scripting


What Can Python Do?

  • Python can build dynamic web applications on the server.

  • Python can automate tasks and control software workflows.

  • Python can connect to databases and handle file operations.

  • Python can process large datasets and perform complex calculations.

  • Python can be used for quick prototypes as well as full-scale applications.


Why Choose Python?

  • Python works on all major operating systems: Windows, macOS, Linux, Raspberry Pi, etc.

  • Python’s syntax is simple and easy to understand, similar to English.

  • Python allows you to write clean code with fewer lines compared to other languages.

  • Python uses an interpreter, so you can run your code instantly—ideal for testing and prototyping.

  • Python supports multiple programming styles: procedural, object-oriented, and functional.


Good to Know

  • The latest major version is Python 3, which we’ll focus on in this guide.

  • Although Python 2 is still used in some projects, it only receives security updates.

  • You can write Python code in a text editor, or use an IDE like Thonny, PyCharm, VS Code, or Eclipse for larger projects.


Python Syntax vs Other Languages

  • Python emphasizes readability, with syntax that feels close to everyday English.

  • Python uses newlines to end commands instead of semicolons.

  • Python uses indentation (whitespace) to define blocks of code—like loops and functions—rather than curly braces {}.


Example

print("Hello, World!")

Practice Questions

Q1. Write a Python program to print your name?

Q2. Modify the given code to print your age instead of "Hello, World!".

print("Hello, World!")

Q3. List any 3 companies that use Python, as mentioned in the tutorial.

Q4. Write a Python program that prints the following:

Python is awesome!
It is used for web development and data science.

Q5. Identify whether the following code is valid or not. If valid, what will it output?

print("Python is easy to learn!")
print("It works on Windows, Mac, and Linux.")

Python Introduction Quiz

Q1: Who created Python and when was it released?

A. Dennis Ritchie, 1980
B. Guido van Rossum, 1991
C. James Gosling, 1995
D. Brendan Eich, 1995

Q2: Which of the following is not listed as a Python use case in the tutorial?

A. Web Development
B. Game Development
C. Mobile App Development
D. Data Science

Q3: What makes Python a beginner-friendly language?

A. Complex syntax
B. Requires manual memory management
C. Simple and easy-to-learn syntax
D. Only runs on Linux

Q4: Which feature of Python means that you don’t need to specify data types?

A. High-Level
B. Object-Oriented
C. Interpreted
D. Dynamically Typed

Q5: Which of the following companies use Python, as per the tutorial?

A. Facebook, Microsoft, Apple
B. Instagram, Netflix, Spotify
C. Alibaba, Samsung, Tesla
D. Adobe, Twitter, LinkedIn

Go Back Top