Python Study Plan -

 

WEEK 1: Python Fundamentals Question Bank


Core Concepts & Practice

  1. What is the difference between input() and print()? Write a code that takes your name and prints a greeting.

  2. Create a program that converts temperature from Celsius to Fahrenheit.

  3. Demonstrate usage of all types of operators: arithmetic, logical, comparison, assignment, bitwise.

  4. Write a script that swaps two variables without using a third variable.

  5. Use type(), id(), isinstance() on different variables.

  6. Show string slicing with negative indices. Reverse a string.

  7. Write code to count vowels in a sentence using a loop.

  8. Use split(), strip(), lower(), upper(), replace(), find(), startswith(), and endswith() on a sample string.


Built-in Function Practice

  • Practice with: len(), max(), min(), sum(), sorted(), reversed(), enumerate(), zip(), chr(), ord(), round()


WEEK 2: Intermediate + OOP Basics Question Bank


Data Structures & File Handling

  1. Create a dictionary of students and their marks. Print average marks.

  2. Sort a list of tuples based on the second item in each tuple.

  3. Write a program to read a CSV file of names and scores and output the top scorer.

  4. Handle exceptions for division by zero and invalid inputs.

  5. Practice: open(), read(), readlines(), write(), with, close() in file operations.


Functions + OOP Basics

  1. Write a function to check if a number is prime.

  2. Write a program with a reusable function to find factorial, and use lambda, map(), filter(), reduce() to operate on a list.

  3. Build a class Person with name and age attributes. Add a method introduce() that prints a sentence.

  4. Use __init__() constructor to initialize a class, demonstrate attribute access and modification.


Built-in Function Practice

  • Practice with: any(), all(), abs(), divmod(), pow(), range(), help(), dir()


WEEK 3: OOP Mastery & Real-World Thinking


OOP Deep Concepts

  1. Create a base class Animal and derived classes Dog and Cat. Use inheritance.

  2. Implement method overriding using the same method name in child class.

  3. Demonstrate polymorphism using a function that accepts multiple object types.

  4. Create a class Employee that keeps count of all employees created (use class variable).

  5. Build a BankAccount class with encapsulation (_balance, getter/setter using @property).


Design Thinking

  1. Given a messy class design, refactor it to follow Single Responsibility Principle.

  2. Compare and contrast composition vs inheritance with a code example of Library, Book, and Member.

  3. Use isinstance() and issubclass() to check OOP hierarchies.


Practice Abstract Classes

  • Use ABC module: Create an abstract class Shape with method area() and implement in Circle, Square.


WEEK 4: Projects + Real-World Integration


Advanced Practice

  1. Build a mini CLI app: Contact Manager using class & file storage.

  2. Write a program to fetch weather info using a public API and parse the JSON data.

  3. Create a Todo GUI using tkinter with add, delete, and complete functions.

  4. Push a project to GitHub and explain each line in your README.md.


Capstone Challenge Ideas

  • Student Report Card System (file + OOP)

  • Expense Tracker (CSV + OOP)

  • Quiz App (random questions + scoring + file storage)

  • News Aggregator (API + classes + data parsing)


Full Built-in Function Integration


Use these in your weekly challenges and projects:

  • input(), print(), type(), isinstance()

  • abs(), pow(), round(), sum(), min(), max()

  • enumerate(), zip(), map(), filter(), reduce()

  • sorted(), reversed(), len(), range(), divmod()

  • chr(), ord(), id(), eval(), exec(), globals(), locals()

Comments

Popular posts from this blog

TCL Interview Programs

Python Interview Programs

-: Networking interview questions :-