Python Lesson 1 – Introduction | Dataplexa

Introduction to Python

Python is a high-level programming language developed by Guido van Rossum in the late 1980s and officially released in 1991. It was designed to make programming simple, readable, and practical.

During that time, many programming languages were powerful but difficult to read. Guido wanted a language that focused on clarity and reduced unnecessary complexity. That philosophy shaped Python’s design.

At Dataplexa, we start with Python because it teaches logic clearly. It allows beginners to understand how programming works without being distracted by complicated syntax.

Understanding Programming

A computer does not think. It follows instructions exactly as written.

Programming is the process of writing clear instructions so the computer can perform tasks correctly.

For example:

  • If you want to calculate a bill, you must describe the calculation.
  • If you want to display information, you must instruct the computer to show it.

Python is the language we use to communicate those instructions.

Why Python Became Popular

  • Its syntax looks close to English.
  • It avoids unnecessary symbols.
  • It is used in real-world industries.
  • It supports AI, web development, automation, and data science.

Python is not just for beginners. It is used by professionals across industries.

Your First Python Instruction

Let us start with a simple instruction. We will tell Python to display a message.


# Display a message on the screen
print("Welcome to Dataplexa")
Welcome to Dataplexa

Understanding the Code

  • print is a built-in function used to display output.
  • The parentheses () are used to pass information to the function.
  • The text inside quotation marks is called a string.
  • Python reads this instruction and immediately displays the text.

This example shows how simple Python syntax is. There are no extra symbols or complicated structure.

Understanding Variables

In programming, we often need to store information for later use. A variable is a named container that stores a value.

You can think of a variable like a labeled box. You place a value inside it and reuse it whenever needed.

Example: Simple Price Calculation


# Store base price
price = 500

# Store tax percentage
tax_rate = 0.10

# Calculate total amount
total = price + (price * tax_rate)

# Display result
print("Total amount:", total)
Total amount: 550.0

Understanding Each Step

  • price = 500 stores the value 500 inside a variable named price.
  • tax_rate = 0.10 stores the tax percentage.
  • total = price + (price * tax_rate) performs the calculation.
  • print() displays the calculated result.
  • Python executes instructions from top to bottom in order.

Common Beginner Mistakes

  • Writing Print() instead of print()
  • Forgetting quotation marks around text
  • Missing parentheses
  • Incorrect indentation

Practice

What do we call a named container that stores a value?



Quick Quiz

Which function is used to display output in Python?





Recap: You learned how Python was developed, why it became popular, what programming means, how to display output, and how variables store values.

Next up: Installing Python and setting up your development environment.