0% found this document useful (0 votes)
2 views60 pages

Module 2 Python Programming & Foundations

The document outlines a comprehensive study guide for a Python programming module within an AI Career Program, covering essential topics from installation to advanced concepts like OOP and real-world projects. It highlights Python's features, applications, and advantages over other programming languages, emphasizing its simplicity and readability. Additionally, it provides practical instructions for setting up Python and IDEs, writing scripts, and understanding variables, data types, and input/output operations.

Uploaded by

tpass3772
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views60 pages

Module 2 Python Programming & Foundations

The document outlines a comprehensive study guide for a Python programming module within an AI Career Program, covering essential topics from installation to advanced concepts like OOP and real-world projects. It highlights Python's features, applications, and advantages over other programming languages, emphasizing its simplicity and readability. Additionally, it provides practical instructions for setting up Python and IDEs, writing scripts, and understanding variables, data types, and input/output operations.

Uploaded by

tpass3772
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

LACSA TECH -

AI Career Program
Module 2: Python Programming & Foundations

A comprehensive study guide covering Python from the ground up — from


installation and syntax to functions, OOP, file handling, and real-world projects.

PYTHON FOUNDATIONS AI CAREER PROGRAM


What You Will Learn
This module covers 10 essential parts of Python programming, designed to take you from a complete beginner to a confident Python developer.

Introduction to Installing Python Your First Python Syntax &


Python & IDEs Script Comments
History, features, and Setup your development Write and run your first Rules, indentation, and
applications environment program documentation

Variables & Data Input and Output Control Flow Loops (Iteration)
Types Communicating with the Decision making with for loops, while loops,
Storing and managing data user if/elif/else break, continue

Functions, OOP & File Handling Python Projects


Advanced programming concepts Basic to advanced real-world applications
Part 1 - Introduction to Python
Python is a high-level programming language used to develop software, automate
tasks, analyse data, and build Artificial Intelligence systems. It is one of the most
widely used programming languages in the world.

Python is known for its simple syntax and readability, making it very
popular among beginners and professionals alike.
What is Python?
Programming languages allow humans to give instructions to computers in a readable format. Computers cannot understand human language
directly, so programming languages like Python help translate instructions into machine language.

Artificial Intelligence Data Science


Python is the leading language for building AI and Machine Analyse and visualise large datasets using powerful libraries
Learning systems using libraries like TensorFlow and PyTorch. like NumPy, Pandas, and Matplotlib.

Web Development Automation


Build websites and web applications using popular frameworks Automate repetitive tasks such as file management, email
like Django, Flask, and FastAPI. automation, and administrative scripts.
History of Python
The Creator Companies Using Python Today
Python was created by Guido van Rossum, a Dutch Google — Search algorithms and AI systems
programmer. The language was first released in 1991. Netflix — Recommendation engines and data pipelines

The name "Python" was inspired by the British Instagram — Backend web infrastructure
comedy show Monty Python's Flying Circus. Facebook — Data analysis and automation

Python was designed with the goal of making Spotify — Music recommendation and analytics
programming easy to learn, readable, and efficient.
Features of Python

Open-Source Interpreted Language Platform Independent


Anyone can use and modify Python for Code is executed line by line by the Python programs run on Windows, Linux,
free. Developers worldwide contribute to Python interpreter, making debugging and MacOS — the same code works across
improving it continuously. significantly easier. all platforms.

Easy to Learn Large Community Powerful Libraries


Python has very simple syntax that looks Thousands of libraries exist. Tutorials are NumPy, Pandas, TensorFlow, PyTorch,
similar to English. Example: print("Hello widely available and problems can be Scikit-Learn — essential tools for AI and
World") solved easily with community support. Data Science.
Python vs Other Programming Languages
Python stands out from other languages due to its simplicity, readability, and excellent support for AI development.

Feature Python C++ Java

Difficulty Easy Hard Medium

Code Length Short Long Medium

Readability High Low Medium

AI Development Excellent Limited Moderate

Because of these advantages, Python has become the most popular language for Artificial Intelligence and Machine Learning.
Applications of Python

Web Development Automation & Scripting Game Development


Build websites and web applications using Automate repetitive tasks — file Develop games using the Pygame library
Flask, FastAPI, and Django frameworks. management, email automation, and for interactive and graphical applications.
admin scripts.

Cyber Security Mobile & Desktop Apps


Widely used in ethical hacking, network scanning, vulnerability Build applications using Tkinter for desktop GUI and Kivy for
testing, and security automation. mobile applications.
Part 1 — Key Points to Remember
Python is a high-level Python is open-source and Python is known for its simple
programming language used platform independent — runs on and readable syntax, making it
across many domains. Windows, Linux, and MacOS. ideal for beginners.

Python was created by Guido van Python is widely used in AI, Web
Rossum and first released in 1991. Development, Data Science, and
Automation.
Part 2 — Installing Python and IDEs
Before writing Python programs, Python must be installed on your computer.
Python is available for Windows, Linux, and MacOS.

An IDE (Integrated Development Environment) is software used to write,


run, and debug programs efficiently.
Installing Python on Windows
1 Open the Official Website
Visit the official Python website to access the latest version downloads.

2 Download the Installer


Download the latest Python version installer for Windows.

3 Run the Installer


Execute the downloaded installer file to begin the installation process.

4 Add Python to PATH


Check the option "Add Python to PATH" — this is very important for terminal access.

5 Click Install Now


Complete the installation and verify by typing python --version in the terminal.

Expected output after installation: Python 3.12.1 — this confirms Python is installed successfully.
Installing Python on Linux & MacOS
Linux Installation MacOS Installation

1. Most Linux systems already include Python by 1. Download Python from the official website
default. 2. Run the installer package
2. To check: python3 --version 3. Follow the installation steps
3. To install: sudo apt install python3 4. Verify using: python3 --version
Introduction to IDEs
An IDE provides a code editor, syntax highlighting, debugging tools, and auto-completion — everything a developer needs in one place.

IDLE VS Code PyCharm


Default Python editor. Simple and Popular and powerful editor with Professional IDE by JetBrains with
beginner friendly. Comes bundled with extensions, Git support, and a large advanced debugging, code analysis, and
Python installation. developer community. project management tools.
Python Environment Setup

Install Add to Open Run


Python PATH Terminal Programs

Environment variables allow the system to locate Python from any folder. If Python is added to the system PATH, you can run Python from the
terminal from any directory. Without setting PATH, the system may not recognise Python commands.
Running Python in Terminal & IDE
Running in Terminal Running in an IDE
Open Python interactive shell by typing python in the terminal. 1. Open VS Code or PyCharm
Python programs are saved as .py files. 2. Create a Python file with .py extension

To run a file: 3. Write your Python code


4. Click the Run button

python [Link] 5. Output appears in the IDE terminal


Output: Hello World

Python files always use the .py extension. Example: [Link], [Link], [Link]
Part 2 — Key Points to Remember
Python must be installed before writing Python can run on Windows, Linux, and IDEs help developers write and run code
programs — download from the official MacOS — same code works across all easily with syntax highlighting and
Python website. platforms. debugging tools.

Popular IDEs include IDLE, VS Code, and Python programs can run in terminal or
PyCharm — each suited for different skill IDE and always use the .py extension.
levels.
Part 3 — Writing Your First
Python Script
A Python script is a file that contains Python code which can be executed by the
Python interpreter. Python programs are usually saved with the .py extension.

Examples of Python files: [Link], [Link], [Link]


Creating Your First Python File

Create and Save the File


Open a Code Editor Create a new file and save it with the .py extension. Example:
Open VS Code, PyCharm, or IDLE — any code editor will work for [Link]
your first program.

Run the Script


Write Your First Code Save the file and run it using the terminal command python
Type your first Python statement: print("Hello World") [Link] or click Run in your IDE.
The print() Function
The print() function is used to display output on the screen. It is the most commonly used function for beginners.

Basic Usage Printing Variables

print("Hello World") name = "Alice"


Output: Hello World print(name)
Output: Alice

Printing Multiple Lines


Example Script — [Link]
print("Welcome to Python Programming")
print("This is your first program") name = "Alice"
print("Hello", name)
print("Welcome to Python programming")

Output:
Hello Alice
Welcome to Python programming
Python Script Execution Flow
Execution
Script File
Program logic runs
Python .py source file sequentially

Interpreter Output
Reads and parses the Results displayed on
code screen

When you run a Python script, the Python interpreter reads the .py file line by line, processes each instruction, and displays the output on the screen. This
sequential execution makes Python easy to debug and understand.
Common Beginner Errors
1 2

Missing Parentheses Wrong File Extension


Incorrect: print "Hello" Incorrect: [Link]

Correct: print("Hello") Correct: [Link]

3 4

Incorrect Indentation Spelling Errors


Incorrect: Code not indented inside if block Incorrect: pritn("Hello")

Correct: if True: then indented print("Hello") Correct: print("Hello")

Always double-check your spelling, parentheses, and file extension before running a Python script.
Part 4 — Python Syntax &
Comments
Syntax refers to the rules that define how Python code must be written. If the syntax
rules are not followed, the programme will produce an error. Python syntax is known
for being simple and easy to read.

Python does not use ; or {} — instead, it uses indentation to organise code


blocks.
Indentation in Python
Indentation means adding spaces at the beginning of a line to show a block of code. In Python, indentation is mandatory — it is not just for style.

Correct Indentation Incorrect Indentation

if True: if True:
print("Hello") print("Hello") # ERROR!

Both statements belong to the same block:


Incorrect indentation will cause an IndentationError and the
programme will not run.
age = 20
if age >= 18:
print("Adult")
print("You can vote")
Comments in Python
Comments are notes written in the code to explain what the programme does. Comments are ignored by the Python interpreter and do not affect
programme execution.

Single-Line Comments Multi-Line Comments


Start with the # symbol: Use triple quotes """:

# This is a comment """


print("Hello Python") This program prints
a welcome message
"""
print("Welcome to Python")

Explain Code Collaborate Document Programs


Comments help explain what each section of code Comments allow other developers to understand Good comments serve as documentation, making
does, making it easier to understand. your code when working in a team. maintenance and updates much easier.
Writing Clean and Readable Code
Use Meaningful Variable Names Example — Voting Eligibility Programme

Bad: x = 10 # Program to check voting eligibility


Better: age = 10 age = 18
if age >= 18:
print("You can vote")
Add Comments When Needed
else:
print("You cannot vote")
# Calculate total marks
total = math + science
Output: You can vote

Keep Code Properly Formatted


Clean code with proper comments and meaningful variable
name = "Alice" names is a hallmark of a professional developer.
age = 20
print(name)
print(age)
Part 5 — Variables and Data Types
A variable is a container used to store data in a programme. Variables allow
programmes to store information, reuse values, perform calculations, and manage
data efficiently.

age = 20
# age → variable name
# 20 → stored value
Rules for Naming Variables
1 2 3

Start with Letter or No Spaces Allowed No Python Keywords


Underscore Incorrect: student name = "Alice" Incorrect: if = 10 (if is a Python keyword)
Correct: age = 20 | _name = "Alice"
Correct: student_name = "Alice" Keywords like if, for, while are reserved by
Incorrect: 2age = 20 Python.
Data Types in Python
A data type defines the type of data stored in a variable. Python supports several built-in data types.

Data Type Description Example

int Whole numbers age = 25, year = 2025

float Decimal numbers price = 10.5, temp = 36.6

str Text in quotes name = "Alice"

bool True or False is_student = True

name = "Alice"
age = 20
height = 5.5
is_student = True

Output: Alice 20 5.5 True


Dynamic Typing & Type Functions
type() Function

The type() function checks the data type of a variable.

age = 20
print(type(age))
Dynamic Typing
Output: <class 'int'>
Python uses dynamic typing — no need to specify data type explicitly.
The same variable can store different types.
Type Casting

x = 10 x = "10"
x = "Hello" # same variable! y = int(x) # String → Integer
print(y) → 10
num = 5
result = float(num) # Integer → Float
print(result) → 5.0
Variable and Data Storage Summary

4 0 1991
Core Data Types Type Declarations Needed Year Python Was Born
int, float, str, bool — the four fundamental data Python automatically detects the data type — Dynamic typing has been a core feature of
types in Python no explicit declaration required Python since its very first release

Use the type() function to check the data type of any variable. Use type casting functions like int(), float(), and str() to convert between
types.
Part 6 — Input and Output
In programming, Input and Output (I/O) refers to the communication between the
user and the programme. Input is data provided by the user, and output is
information displayed by the programme.

User Input

Program Processes

Display Output
The input() Function
The input() function is used to take input from the user. It always returns a string by default.

Basic Input Converting Input to Integer

name = input("Enter your name: ") age = int(input("Enter your age: "))
print(name) print(age)
# Now the input becomes an integer
Output:
Enter your name: Alice Adding Two Numbers
Alice

num1 = int(input("Enter first number: "))


Input Returns String num2 = int(input("Enter second number: "))
sum = num1 + num2
age = input("Enter your age: ") print(sum)
print(type(age))
Output: <class 'str'> Output:
Enter first number: 5
Enter second number: 3
8
String Concatenation & f-Strings

String Concatenation f-Strings (Modern Method)


Combine strings using the + operator: Python's modern string formatting — cleaner and easier to read:

name = "Alice" name = "Alice"


print("Hello " + name) age = 20
Output: Hello Alice print(f"My name is {name} and
I am {age} years old")
name = "Alice"
city = "London" Output:
print("My name is " + name + My name is Alice and I am 20 years old
" and I live in " + city)

f-strings are the recommended modern approach for string formatting in Python. They are cleaner, easier to read, and widely used in
professional code.
Complete Input/Output Example
name = input("Enter your name: ")
age = int(input("Enter your age: "))
print(f"Hello {name}, you are {age} years old")

Output:
Enter your name: Alice
Enter your age: 20
Hello Alice, you are 20 years old

input() is used to take input from the user — always returns a print() is used to display output on the screen.
string.

Type conversion (int(), float()) is required when working with f-strings provide a modern, clean way to format output with
numbers from input. variables embedded directly.
Part 7 - Control Flow
(Decision Making)
Control flow means controlling the order in which instructions
are executed. Python uses if, elif, and else statements to make
decisions based on conditions.

Example 1
If temperature is high → turn on the fan

Example 2
If marks are above 50 → student passes

Example 3
If password is correct → login allowed
if, if-else, and if-elif-else
if Statement if-elif-else — Grade System
Executes code only when a condition is true:
marks = 75
if marks >= 90:
age = 18
print("Grade A")
if age >= 18:
elif marks >= 70:
print("You are eligible to vote")
print("Grade B")
elif marks >= 50:
Output: You are eligible to vote
print("Grade C")
else:
if-else Statement print("Fail")

age = 16 Output: Grade B


if age >= 18:
print("You can vote")
else:
print("You cannot vote")

Output: You cannot vote


Comparison & Logical Operators
Comparison Operators Logical Operators

Operator Meaning Operator Meaning

== Equal to and Both conditions must be true

!= Not equal or At least one condition must be true

> Greater than not Reverses the condition

< Less than


Example with Logical Operators

>= Greater than or equal


age = 20
<= Less than or equal citizen = True
if age >= 18 and citizen:
print("Eligible to vote")
Output: Eligible to vote
Nested if Statements & Practical Example
Nested if Statements Even or Odd Number Programme
An if statement inside another if statement:
num = int(input("Enter a number: "))
if num % 2 == 0:
age = 20
print("Even number")
citizen = True
else:
if age >= 18:
print("Odd number")
if citizen:
print("Eligible to vote")
Output:
Enter a number: 6
Output: Eligible to vote
Even number

Control flow allows programmes to Python uses if, elif, and else for decision Nested if statements allow complex,
make decisions based on conditions. making — no switch statement needed. multi-level decision making in
programmes.
Part 8 — Loops (Iteration)
A loop is used to repeat a block of code multiple times. Loops are essential for
processing lists, printing sequences, and repeating calculations without writing the
same code over and over.

Printing Numbers Processing Lists


Print numbers from 1 to 100 Go through every item in a list and
without writing 100 print perform an action on each one.
statements.

Repeating Calculations
Perform the same calculation multiple times with different values.
The for Loop
Used when we know how many times the loop should run. Commonly used with lists, strings, and ranges.

Printing Numbers with range() Loop Through a List

for i in range(5): fruits = ["apple", "banana", "mango"]


print(i) for fruit in fruits:
Output: 0, 1, 2, 3, 4 print(fruit)

Output:
range() Function
apple
banana
range(5) → 0, 1, 2, 3, 4 mango
range(1,6) → 1, 2, 3, 4, 5

for i in range(1,6):
print(i)
Output: 1, 2, 3, 4, 5
The while Loop
The while loop runs as long as a condition remains true. It is useful when the number of iterations is not known in advance.

Basic while Loop Infinite Loop — AVOID!

i=1 while True:


while i <= 5: print("Hello")
print(i) # This runs forever!
i=i+1
Output: 1, 2, 3, 4, 5
Always ensure your while loop has a condition that will
eventually become False, or use a break statement to exit.
break and continue Statements
break — Stop the Loop continue — Skip an Iteration
Stops the loop immediately when a condition is met: Skips the current iteration and moves to the next:

for i in range(10): for i in range(5):


if i == 5: if i == 2:
break continue
print(i) print(i)

Output: 0, 1, 2, 3, 4 Output: 0, 1, 3, 4
(loop stops at 5) (2 is skipped)
for Loop vs while Loop
Feature for Loop while Loop

Iterations Known in advance Unknown / condition-based

Common Use Lists, sequences, ranges Conditions, user input

Control Automatic via range/list Manual update required

Practical Example — Multiplication Table

num = int(input("Enter a number: "))


for i in range(1, 11):
print(num * i)

Output (for 5): 5, 10, 15, 20, 25, 30, 35, 40, 45, 50
Part 9 -
Functions, OOP & File Handling
This part covers three advanced and essential Python concepts: Functions for
reusable code, Object-Oriented Programming (OOP) for organised code structure,
and File Handling for storing and retrieving data.

Functions OOP
Reusable blocks of code that Organise code using classes and
perform specific tasks — organise objects — model real-world entities
and reduce repetition. in programmes.

File Handling
Store and retrieve data from files — make programmes persistent and data-
driven.
Functions in Python
A function is a reusable block of code that performs a specific task. Functions help in organising code, reducing repetition, and improving readability.

Defining a Function Return Statement

def greet(): def add(a, b):


print("Hello Python") return a + b

greet() result = add(5, 3)


Output: Hello Python print(result)
Output: 8

Function with Parameters


Lambda Functions
def greet(name): Small anonymous functions for quick operations:
print("Hello", name)

add = lambda a, b: a + b
greet("Alice")
print(add(4, 6))
Output: Hello Alice
Output: 10
Object-Oriented Programming (OOP)
OOP organises code using classes and objects. A class is a blueprint, and objects are instances of that class. Example: Class → Car; Objects → BMW, Tesla, Toyota.
Classes and Objects Inheritance

class Student: class Animal:


name = "Alice" def speak(self):
print("Animal makes sound")
s1 = Student()
print([Link]) class Dog(Animal):
Output: Alice pass

d = Dog()
Constructor (__init__)
[Link]()
Output: Animal makes sound
class Student:
def __init__(self, name):
[Link] = name
Polymorphism

s1 = Student("Alice") class Dog:


print([Link]) def sound(self):
Output: Alice print("Bark")

class Cat:
def sound(self):
print("Meow")

d = Dog()
c = Cat()
[Link]() → Bark
[Link]() → Meow
OOP Concepts at a Glance
File Handling in Python
File handling allows programmes to store and retrieve data from files. This makes programmes persistent — data is saved even after the programme closes.

Open File Read/Write Close File

Mode Meaning

r Read file — opens existing file for reading

w Write file — creates or overwrites a file

a Append data — adds to existing file without overwriting

x Create new file — fails if file already exists


File Handling — Reading, Writing & Appending
Reading a File Using the with Statement (Recommended)

file = open("[Link]", "r") with open("[Link]", "r") as file:


print([Link]()) print([Link]())
[Link]() # File closes automatically!

Writing to a File
The with statement is the recommended approach — it
automatically closes the file even if an error occurs.
file = open("[Link]", "w")
[Link]("Hello Python")
[Link]() Saving Student Data
Content saved: Hello Python

name = input("Enter student name: ")


Append Mode with open("[Link]", "a") as file:
[Link](name + "\n")

file = open("[Link]", "a") print("Student saved")


[Link]("\nNew data")
[Link]()
Part 9 — Key Points to Remember
Functions help reuse and organise code — OOP organises programmes using classes Inheritance allows classes to reuse code
created using the def keyword. and objects — models real-world entities. from parent classes, reducing duplication.

Polymorphism allows different behaviour for the same method File handling allows programmes to read and write files — use with
name across different classes. for safety.
Part 10 — Python Projects
(Basic to Advanced)
Projects help students improve logical thinking, practise programming skills, understand
real-world applications, and build a portfolio for future jobs.

Basic Concepts
1 Variables, I/O, conditions, loops

Beginner Projects
2 Calculator, Number Guessing Game

Intermediate Projects
3 Student Database, To-Do List

Advanced Apps
4 Login System, Table Generator
Project 1 — Basic Calculator
BEGINNER PROJECT

Concepts used: variables, input/output, conditions. Operations: addition, subtraction, multiplication, division.

num1 = float(input("Enter first number: "))


num2 = float(input("Enter second number: "))
operation = input("Enter operation (+, -, *, /): ")

if operation == "+":
print("Result:", num1 + num2)
elif operation == "-":
print("Result:", num1 - num2)
elif operation == "*":
print("Result:", num1 * num2)
elif operation == "/":
print("Result:", num1 / num2)
else:
print("Invalid operation")

Example Output:
Enter first number: 10
Enter second number: 5
Enter operation: *
Result: 50
Project 2 — Number Guessing Game
BEGINNER PROJECT

Concepts used: variables, input/output, conditions. A fun interactive programme where the user tries to guess a secret number.

secret_number = 7
guess = int(input("Guess the number: "))

if guess == secret_number:
print("Correct guess!")
else:
print("Wrong guess. Try again!")

Example Output:
Guess the number: 7
Correct guess!

This project can be extended with a while loop to allow multiple guesses until the user gets it right — a great intermediate challenge!
Project 3 — Student Database System
INTERMEDIATE PROJECT

Concepts used: loops, functions, file handling, data storage. This project saves student records to a text file for persistent storage.

Programme Code Example Stored File ([Link])

name = input("Enter student name: ") Alice 20


age = input("Enter student age: ") Bob 21
John 19
with open("[Link]", "a") as file:
[Link](name + " " + age + "\n") Each time the programme runs, a new student record is appended to
the file. The data persists even after the programme closes.
print("Student record saved successfully")
Project 4 — Simple To-Do List
INTERMEDIATE PROJECT

Concepts used: lists, input/output, loops. This project demonstrates how to use Python lists to store and manage tasks dynamically.

tasks = []
task = input("Enter a task: ")
[Link](task)
print("Your tasks:", tasks)

Example Output:
Enter a task: Study Python
Your tasks: ['Study Python']

This project can be extended with a loop to keep adding tasks, options to delete tasks, and file handling to save the list permanently.
Project 5 — File-Based Login System
ADVANCED PROJECT

Concepts used: functions, conditions, file handling, loops. This project simulates a real-world login system using stored credentials.

Enter Success /
Check File
Credentials Fail

username = input("Enter username: ")


password = input("Enter password: ")

with open("[Link]", "r") as file:


data = [Link]()

if username in data and password in data:


print("Login successful")
else:
print("Invalid username or password")
Project 6 — Multiplication Table Generator
ADVANCED PROJECT

Concepts used: loops, input/output, arithmetic operations. A clean and practical programme that generates a full multiplication table for any
number.

Programme Code Example Output (for 5)

number = int(input("Enter a number: ")) 5x1=5


for i in range(1, 11): 5 x 2 = 10
print(number, "x", i, "=", number * i) 5 x 3 = 15
5 x 4 = 20
5 x 5 = 25
5 x 6 = 30
5 x 7 = 35
5 x 8 = 40
5 x 9 = 45
5 x 10 = 50
Python Learning Path with Projects
Part 10 — Key Points to Remember
Projects Are Essential
Projects are the most important way to learn programming — theory alone is not enough.

Beginner Projects
Focus on basic concepts: variables, input/output, conditions, and simple loops.

Intermediate Projects
Introduce file handling and data storage — making programmes persistent and useful.

Advanced Projects
Simulate real-world applications — login systems, databases, and automation tools.

Build Your Portfolio


Building projects improves coding and problem-solving skills and prepares you for a career in AI.
Module 2 — Completed!
LACSA TECH AI Career Program

Congratulations on completing Module 2: Python Programming & Foundations. You have covered all
10 essential parts of Python — from installation and syntax to advanced concepts like OOP, file
handling, and real-world projects.

10 6
Parts Covered Projects Built
From Introduction to Python all the way to Calculator, Guessing Game, Database, To-Do List,
Advanced Projects Login System, Table Generator

4
Core Data Types
int, float, str, bool — the building blocks of all
Python programmes

Generated for: LACSA TECH Pvt. Ltd. | Program: AI Career Program |


Module: 2 — Python Programming & Foundations | Website: [Link]

You might also like