0% found this document useful (0 votes)
0 views8 pages

Python Learning Syllabus_ Basic to Advanced (3 Months Duration)

The document outlines a comprehensive 3-month Python programming curriculum divided into foundational concepts, intermediate topics, and advanced features. It covers essential programming concepts, control structures, functions, data structures, object-oriented programming, file handling, and real-world applications, with hands-on practice included throughout. The plan also suggests future learning paths in web development, data analysis, and advanced Python applications.

Uploaded by

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

Python Learning Syllabus_ Basic to Advanced (3 Months Duration)

The document outlines a comprehensive 3-month Python programming curriculum divided into foundational concepts, intermediate topics, and advanced features. It covers essential programming concepts, control structures, functions, data structures, object-oriented programming, file handling, and real-world applications, with hands-on practice included throughout. The plan also suggests future learning paths in web development, data analysis, and advanced Python applications.

Uploaded by

aashishrokka2
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 8

Month 1: Basics and Foundational Concepts

Week 1: Introduction to Programming and Python Basics


1. Understanding Programming
○ What is programming?
○ High-level vs. low-level programming.
○ Introduction to compilers and interpreters.
○ How Python works (compilation to bytecode and interpretation). ○
Installing Python and setting up an IDE (VS Code, PyCharm, or
Jupyter Notebook).
2. Basic Python Syntax
○ Hello, World! program.
○ Python keywords and identifiers.
○ Writing and running Python scripts.
○ Comments and code readability.
3. Variables and Data Types
○ Numbers, Strings, Booleans.
○ Dynamic typing in Python.
○ Type conversion and type checking.
4. Python Operators
○ Arithmetic Operators
i. Perform basic arithmetic operations: +, -, *, /, // (floor division), %
(modulus), ** (exponentiation).
ii. Example: a + b, a / b.
○ Assignment Operators
i. Assign values to variables: =, +=, -=, *=, /=, etc.
ii. Example: x += 5 (equivalent to x = x + 5).
○ Comparison Operators
i. Compare values: ==, !=, >, <, >=, <=.
ii. Example: x > y.
○ Logical Operators
i. Combine conditions: and, or, not.
ii. Example: (x > 5 and y < 10).
○ Membership Operators
i. Check membership in sequences: in, not in.
ii. Example: 'a' in 'apple'.

Prepared by: Ajaya Pudasaini 2024-11-24


○ Identity Operators
i. Compare objects' memory locations: is, is not.
ii. Example: x is y.

5. Hands-on Practice
○ Create a Python script to calculate the area of a rectangle.
i. Area=length×width
○ Convert temperature between Celsius and Fahrenheit.
i. C to F: F=C×5/9+32
ii. F to C: C=(F−32)×9/5

Week 2: Control Structures and Loops


1. Control Flow
○ Conditional statements: if, else, elif.
○ Nested conditions.
2. Loops
○ for and while loops.
○ Loop control: break, continue, pass.
○ Sentinels in loops.
3. Hands-on Practice
○ Check Whether a Number is Positive, Negative, or Zero.
○ Menu-Driven Program for Calculator.
i. Display a menu with operations (Addition, Subtraction,
Multiplication, Division).
ii. Take user input for menu choice and two numbers.
iii. Use if-elif-else to perform the corresponding operation.
iv. Loop until the user chooses to exit the program.

○ Multiplication Tables up to 10
i. Use a loop to iterate through numbers 1 to 10 (for loop).
ii. For each number, use another loop to calculate its multiples
from 1 to 10 (inner loop).
iii. Print each result in the format: a x b = c.
○ Basic Patterns
i. Right-Aligned Triangle
1. Loop from 1 to n for rows.

Prepared by: Ajaya Pudasaini 2024-11-24


2. Use another loop to print stars (*) equal to the row
number.

ii. Centred Pyramid


1. Loop for rows from 1 to n.
2. Print spaces (n - i times) before stars.
3. Print stars (2 * i - 1 times).

○ Solve FizzBuzz, Sum of Even/Odd Numbers, Prime Number


Checker
i. FizzBuzz
1. Loop from 1 to 100.
2. Use if-elif-else:
a. Print "FizzBuzz" if divisible by both 3 and 5.
b. Print "Fizz" if divisible by 3.
c. Print "Buzz" if divisible by 5.
d. Else, print the number.
ii. Sum of Even/Odd Numbers
1. Ask the user for the range (n).
2. Loop from 1 to n.
3. Use if to check if a number is even or odd:
a. Add even numbers to even_sum.
b. Add odd numbers to odd_sum.
4. Print both sums.
iii. Prime Number Checker
1. Read a number from the user.
2. Use a loop to check divisibility from 2 to the square root
of the number.
3. If any divisor is found, print "Not Prime". Otherwise, print
"Prime".

Week 3: Functions, Modules, and Libraries


Prepared by: Ajaya Pudasaini 2024-11-24

1. Functions
○ Defining and calling functions.
○ Parameters and arguments (positional, keyword, default).
○ Return values.
○ Scope and global variables.
2. Modules and Libraries
○ import and use standard libraries (e.g., math, random).
○ Writing custom modules.
3. Hands-on Practice (WIP)
○ Calculator program using functions.
○ Dice roll simulation using random.

Week 4: Data Structures in Python


1. Built-in Data Structures
○ Lists, Tuples, Sets, and Dictionaries.
○ Mutable vs. immutable types.
○ Operations: indexing, slicing, adding, and removing elements.
○ Iterating over data structures.
2. String Operations
○ Built-in string functions: strip, split, replace, find, etc.
○ String formatting (f-strings and .format()).
3. Hands-on Practice (WIP)
○ Shopping cart program.

Problem Statement:

Create a Python program that allows users to:

1. Add items to a shopping cart.


2. View the cart's contents.
3. Remove items from the cart.
4. Display the total price of all items.
5. Exit the program.
○ Word frequency counter from a text

Prepared by: Ajaya Pudasaini 2024-11-24


Month 2: Intermediate Python
Week 5: File Handling and Error Management
1. File Handling
○ Reading from and writing to files.
○ Working with text and CSV files.
○ Using context managers (with open).
2. Error and Exception Handling
○ Try-except blocks.
○ Handling specific exceptions.
○ Raising custom exceptions.
3. Hands-on Practice (WIP)
○ Create a simple log management system.

Week 6–7: Object-Oriented Programming (OOP)


1. OOP Basics
○ Classes and objects.
○ Attributes and methods.
○ The __init__ method.
○ The self parameter.
2. Advanced OOP
○ Inheritance and method overriding.
○ Encapsulation and abstraction.
○ Polymorphism.
○ Special methods: __str__, __repr__, __len__, __eq__, etc.
3. Hands-on Practice (WIP)
○ Create a BankAccount class with deposit, withdraw, and
balance-checking methods.

Prepared by: Ajaya Pudasaini 2024-11-24


○ Implement a class hierarchy for shapes (e.g., Circle, Square, Triangle)
with area and perimeter methods.
○ Build a library management system using OOP.

Week 8: Advanced Python Features


1. Advanced Concepts
○ List comprehensions.
○ Lambda functions.
○ Map, filter, and reduce.
○ Iterators and generators.
2. Decorators
○ Defining and using decorators.
○ Built-in decorators like @staticmethod, @classmethod.

Month 3: Working with Libraries and Real-World


Features
Week 9: Popular Python Libraries
1. Date and Time
○ Using datetime for date manipulation.
2. File System Management
○ Using os and shutil modules.
3. Advanced Data Structures
○ Using collections (e.g., Counter, defaultdict, deque).

Hands-On Problems (WIP):


1. Write a program to back up files from one directory to another. 2. Count
the frequency of words in a large text file using collections.Counter.

Week 10: Database and API Integration


1. Database Integration
○ Using SQLite with sqlite3.

Prepared by: Ajaya Pudasaini 2024-11-24


○ CRUD operations with a database.
2. API Integration
○ Consuming APIs using the requests library.

Hands-On Problems (WIP):


1. Create a script to fetch weather data from an API and display it.
2. Build a to-do list app with a database backend.

Week 11: Multithreading and Multiprocessing


1. Concurrency
○ Basics of threading and multiprocessing.
○ When to use threads vs. processes.
2. Testing
○ Writing test cases using unittest or pytest.

Hands-On Problems (WIP):


1. Speed up file processing using multithreading.
2. Write unit tests for a previously written script.

Week 12: Consolidation and Application


1. Review
a. Revisit and reinforce key concepts from the syllabus:
i. Functions, OOP, and advanced Python features.
ii. Libraries (datetime, collections, os, shutil).
iii. File handling, database integration, and API consumption. b.
Address doubts and ensure understanding.
2. Apply Learning to Existing Topics
a. Expand on previous hands-on tasks:
i. Shopping Cart Program:
1. Add file handling to save cart details to a file and retrieve
them later.
2. Introduce classes to manage cart functionality with OOP
principles.

Prepared by: Ajaya Pudasaini 2024-11-24


ii. Bank Account Management System:
1. Integrate error handling to catch invalid operations (e.g.,
withdrawing more than balance).
2. Use sqlite3 to store account details persistently.
iii. To-Do List Application:
1. Add a feature to store tasks in a database.
2. Implement multithreading to manage background
notifications for deadlines.
3. Advanced Exercises
a. Refactor existing code using advanced Python techniques:
i. Add list comprehensions, decorators, and generators to
optimise previous programs.
ii. Enhance existing projects with logging using the logging
module.

After 3-Month Plan


1. Learn Web Development:
○ Basics of Django or Flask or FastAPI for building web apps.
○ Authentication, CRUD, and templates.
2. Data Analysis and Automation:
○ Learn pandas, numpy, and matplotlib.
○ Work on Python scripts for automating repetitive tasks.
3. Advanced Python for Real-World
Applications: ○ Write automation scripts (e.g., scraping,
report generation).
○ Build simple REST APIs.

Prepared by: Ajaya Pudasaini 2024-11-24


Prepared by: Ajaya Pudasaini 2024-11-24

You might also like