SAMANTUS Python for Data Analytics — Complete Training Manual MODULE 01
← Back to Course Index

Introduction to Python


On This Page

Module 1: Introduction to Python


1.1  What is Python?

Python is a high-level, general-purpose programming language created by Guido van Rossum and first released in 1991. It is known for its clean, readable syntax that closely resembles the English language, which makes it one of the easiest programming languages for absolute beginners to learn.

Unlike many other programming languages that require complex punctuation and rigid formatting, Python focuses on readability. This is why Python is often described as a language that reads almost like plain English instructions.

✓ Simple Analogy
Think of Python like giving instructions to a very obedient assistant in plain, step-by-step language. You don't need to speak in complicated code — you just tell it clearly what to do, one step at a time, and it executes exactly that.

Key Characteristics of Python

1.2  History of Python

Python's development began in the late 1980s at Centrum Wiskunde & Informatica (CWI) in the Netherlands, where Guido van Rossum wanted to create a successor to the ABC language that fixed its limitations while keeping its readability.

YearMilestone
1989Guido van Rossum begins working on Python as a hobby project
1991Python 0.9.0 released publicly — first public release
1994Python 1.0 released with functional programming tools
2000Python 2.0 released — introduced list comprehensions, garbage collection
2008Python 3.0 released — major redesign, not backward compatible
2020Python 2 officially retired (End of Life)
2026Python 3.13+ widely used across AI, Data Science, and Web Development

The name "Python" was not inspired by the snake — Guido named it after the British comedy show Monty Python's Flying Circus, which he was a fan of.

1.3  Why Python for Data Analytics?

Python has become the number one language for Data Analytics and Data Science worldwide. Here is why every analytics professional is expected to know Python:

ℹ Why This Matters For Your Career
Recruiters actively search for "Python + Excel + SQL" combination skills for Data Analyst roles. Learning Python is no longer optional for analytics careers — it is the baseline expectation.

1.4  Real-World Applications of Python

DomainHow Python Is Used
Data AnalyticsCleaning, analyzing, and visualizing business data
Web DevelopmentBuilding websites/backends using Django, Flask
Artificial IntelligenceMachine Learning, Deep Learning, NLP, Computer Vision
AutomationAutomating Excel reports, emails, file management
FinanceAlgorithmic trading, risk analysis, forecasting
Game DevelopmentSimple 2D games using Pygame
CybersecurityBuilding security tools and penetration testing scripts

1.5  Career Opportunities After Learning Python

✓ Instructor Tip
Share real LinkedIn job postings for "Data Analyst" roles with your students during this session — seeing genuine listings that require Python significantly increases motivation and buy-in.

1.6  Installing Python (Windows / Mac)

Step-by-Step Installation on Windows:

✗ Common Mistake
Students frequently forget to check "Add Python to PATH" during installation. This causes the "'python' is not recognized" error later. If this happens, simply reinstall and tick that checkbox.

Step-by-Step Installation on macOS:

1.7  Installing VS Code

Visual Studio Code (VS Code) is a free, lightweight, and highly popular code editor developed by Microsoft. It is widely used by professional Python developers.

1.8  Installing Jupyter Notebook

Jupyter Notebook is the most popular tool among Data Analysts because it allows you to write and run code in small, independent blocks called cells, and instantly see outputs, charts, and tables right below the code.

► Install via pip
pip install notebook

# To launch Jupyter Notebook:
jupyter notebook

1.9  Installing Anaconda

Anaconda is an all-in-one distribution that comes pre-loaded with Python, Jupyter Notebook, and the most important Data Analytics libraries (NumPy, Pandas, Matplotlib) already installed — saving beginners from installing each library manually.

✓ Recommendation for Beginners
For classroom training, install Anaconda instead of plain Python — it saves significant setup time since Pandas, NumPy, and Jupyter come pre-installed.

1.10  Running Your First Python Program

Let's write the traditional first program every programmer starts with:

► hello.py
# My first Python program
print("Hello, World!")
print("Welcome to Samantus Python for Data Analytics")
Output
Hello, World!
Welcome to Samantus Python for Data Analytics

How to run this program:

ℹ Note
The print() function displays output on the screen. You will use it constantly throughout this course to check your code's results.

1.11  Practical Exercises

Basic (5 Questions)

1. Write a program to print your name and course name.

2. Print "I am learning Python for Data Analytics" three times.

3. Check your installed Python version using the terminal.

4. Open Jupyter Notebook and run a print statement in a cell.

5. Create a new folder named 'python_practice' and save hello.py inside it.

Intermediate (5 Questions)

1. Install VS Code and configure the Python extension.

2. Create a Python file that prints a multi-line welcome message using triple quotes.

3. Explain in your own words the difference between Python 2 and Python 3.

4. Research and list 3 companies that use Python, with the department that uses it.

5. Install Anaconda and open Anaconda Navigator successfully.

Advanced (5 Questions)

1. Research why Python is interpreted rather than compiled, and note one pro and one con of this.

2. Compare Jupyter Notebook vs VS Code for data analytics work — when would you use each?

3. Find out what "PEP 8" is and write 3 rules it defines.

4. Explain what "open source" means and why it matters for Python's growth.

5. Create a short 5-line presentation explaining why you are learning Python for your career.

1.12  Module Quiz (MCQs)

Q1. Who created Python?

Q2. In which year was Python first publicly released?

Q3. Python is best described as:

Q4. Which tool comes bundled with Anaconda?

Q5. Which function is used to display output in Python?

ℹ Answer Key
1-b, 2-b, 3-b, 4-b, 5-c

1.13  Module Assignment

Assignment: Setup & First Program Documentation

Expected Output: A short report showing successful installation proof and one working Python program with correct output — proving your development environment is ready for Module 2.

1.14  Interview Questions — Module 1


1.15  Student Notes Page

Use this space to write down key points, doubts, and your own examples from today's session.