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 = 10
Β 

Display:

  • 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:

  1. Even or Odd Number Checker
  2. Voting Eligibility Checker
  3. Student Grade Calculator
  4. Largest of Three Numbers
  5. 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.