Learn Python Programming from scratch with practical examples, coding exercises and mini project development. This workshop is specially designed for complete beginners.
Start Learning
Step-by-Step Installation Process
Open Google and search for Python Download.
Open the official website: https://www.python.org
Download the latest Python version.
During installation enable: "Add Python to PATH"
Verify installation:
python --version
Applications of Python
Python is used to build backend applications and APIs.
Python is used in AI and Machine Learning applications.
Python helps automate repetitive software tasks.
Python is used for data analysis and visualization.
Create and Run Your First Python Program
Open Notepad.
Type the following program:
print("Hello World")
Save the file as: hello.py
Open Command Prompt.
Navigate to file location:
cd Desktop
Run the program:
python hello.py
Hello World
Understanding Variables
Variables are used to store data in Python applications.
Data type represents the type of value stored in a variable.
name = "Ravi" age = 22 salary = 25000.50 print(name) print(age) print(salary)
Reading Data From User
name = input("Enter Your Name: ")
print("Welcome", name)
age = int(input("Enter Age: "))
print(age)
Mathematical Operations
a = 10 b = 5 print(a + b) print(a - b) print(a * b) print(a / b)
Simple Python Calculator
num1 = int(input("Enter First Number: "))
num2 = int(input("Enter Second Number: "))
print("Addition:", num1 + num2)
print("Subtraction:", num1 - num2)
print("Multiplication:", num1 * num2)
print("Division:", num1 / num2)
Student Marks Management System
This program accepts student marks, calculates total and average, and displays the final result.
name = input("Enter Student Name: ")
m1 = int(input("Enter Marks 1: "))
m2 = int(input("Enter Marks 2: "))
m3 = int(input("Enter Marks 3: "))
total = m1 + m2 + m3
average = total / 3
print("Student Name:", name)
print("Total Marks:", total)
print("Average:", average)