Python Session Portal 01 (Basics)
Python Programming Fundamentals
Start your journey into the world of programming with Python β one of the most powerful, beginner-friendly, and widely used programming languages. This session is designed to build a strong foundation by introducing core Python concepts, syntax, and programming logic through practical examples and hands-on coding exercises. Whether you’re a complete beginner or refreshing your basics, this module will prepare you for advanced Python development, Data Science, Artificial Intelligence, Automation, and Web Development.
In this session, you will learn:
- Understand Python Fundamentals including installation, IDE setup, and writing your first Python program.
- Learn Variables and Data Types such as integers, floats, strings, booleans, lists, tuples, dictionaries, and sets.
- Master Input & Output Operations to interact with users and process different types of data.
- Explore Operators and Expressions including arithmetic, comparison, logical, assignment, and membership operators.
- Build Decision-Making Logic using if, elif, else statements to create intelligent programs.
- Practice with Hands-on Examples to strengthen programming concepts and improve problem-solving skills.
β TASK 1: Python Installation & First Program
π― Objective:
Set up the Python development environment and understand how to write and execute your first Python program.
πΉ Session:
π Click here to watch Session 1 β Python Tutorial for Beginners with VS Code
π Task:
Write notes on:
- What is Python?
- Applications of Python
- Installing Python
- Installing VS Code
- Running your first Python program
- Understanding
print()function
Practice Activity:
- Install Python and VS Code.
- Create a file named hello.py
Write a program that prints:
ΒHello World!
Welcome to Python Programming.Β- Take a screenshot of the output.
Β
β TASK 2: Python Basics
π― Objective:
Understand Python syntax, comments, variables, and coding rules.
πΉ Session:
π Click here to watch Session 2 β Python Basics for Beginners
π Task:
Write notes on:
- Python syntax
- Comments
- Variables
- Naming conventions
- Indentation
- Keywords
Practice Activity:
Create a program that stores:
- Your Name
- College Name
- Branch
- Age
Print all details using the print() function.
Β
β TASK 3: Python Operators
π― Objective:
Learn how different operators work in Python.
πΉ Session:
π Click here to watch Session 3 β Python Operators
π Task:
Write notes on:
- Arithmetic Operators
- Comparison Operators
- Logical Operators
- Assignment Operators
- Membership Operators
- Identity Operators
Practice Activity:
Create two variables:
a = 25
b = 10Display:
- Addition
- Subtraction
- Multiplication
- Division
- Modulus
- Floor Division
- Power
Also compare:
- a > b
- a == b
- a != b
Β
β TASK 4: Python Data Types
π― Objective:
Understand the different built-in data types available in Python.
πΉ Session:
π Click here to watch Session 4 β Python Data Types
π Task:
Write notes on:
- Integer
- Float
- String
- Boolean
- List
- Tuple
- Dictionary
- Set
Practice Activity:
Create examples of every data type and print:
- Value
- Data Type using
type()
Example:
age = 20
print(type(age))Β
β TASK 5: User Input & Control Flow
π― Objective:
Learn to accept user input and make decisions using conditional statements.
πΉ Session:
π Click here to watch Session 5 β Python User Input & Control Flow
π Task:
Write notes on:
input()- Type Casting
- if statement
- if-else
- if-elif-else
- Nested if
Practice Activity:
Create programs for:
- Even or Odd Number Checker
- Voting Eligibility Checker
- Student Grade Calculator
- Largest of Three Numbers
- Positive, Negative or Zero Number Checker
Β
β TASK 6: Python Dictionaries & Sets
π― Objective:
Learn how to store, organize, and manipulate data efficiently using Python Dictionaries and Sets.
πΉ Session:
π Click here to watch Session 6 β Python Dictionaries and Sets for Beginners
π Task:
Write notes on:
- What is a Dictionary?
- Creating Dictionaries
- Accessing Dictionary Values
- Adding, Updating, and Removing Elements
- Dictionary Methods
- What is a Set?
- Creating Sets
- Set Operations
- Set Methods
- Difference between Lists, Tuples, Dictionaries, and Sets
π» Practice Activity:
Program 1: Student Information
Create a dictionary containing:
- Name
- Age
- College
- Branch
- CGPA
Display all the details and update one value.
Program 2: Employee Details
Create a dictionary for an employee and print:
- Name
- Employee ID
- Department
- Salary
Program 3: Set Operations
Create two sets of numbers and perform:
- Union
- Intersection
- Difference
- Symmetric Difference
β TASK 7: Python Lists & Tuples
π― Objective:
Understand how Lists and Tuples are used to store collections of data and perform common operations.
πΉ Session:
π Click here to watch Session 7 β Python Lists & Tuples for Beginners
π Task:
Write notes on:
- What is a List?
- Creating Lists
- List Indexing & Slicing
- List Methods (
append(),insert(),remove(),pop(),sort()) - What is a Tuple?
- Creating Tuples
- Tuple Indexing
- Tuple Methods
- Difference between Lists and Tuples
π» Practice Activity:
Program 1: Student Marks
Create a list containing marks of five subjects.
- Display all marks.
- Find the highest mark.
- Find the lowest mark.
- Calculate the average marks.
Program 2: Favourite Programming Languages
Create a list of your five favourite programming languages.
- Add one language.
- Remove one language.
- Sort the list alphabetically.
- Print the final list.
Program 3: Tuple Example
Create a tuple containing:
- Name
- Age
- College
- Course
Print each value separately using indexing.