Unit 1 – Introduction to Python
Explain the key features of Python. Why is Python considered beginner-friendly?
Differentiate between static typing and dynamic typing with examples.
Write a Python program to demonstrate the use of arithmetic operators (/, //, %, **).
What are keywords in Python? Give examples.
Explain the difference between list, tuple, set, and dictionary with examples.
Unit 2 – Flow Control
Write a program to find the absolute value of a number using if statement.
Explain nested if statements with a flowchart and example.
Differentiate between for loop and while loop. When should each be used?
Write a program to check whether a number is an Armstrong number.
Demonstrate the use of break, continue, pass, and else with loops using examples.
Unit 3 – Complex Data Types
Explain string slicing with examples.
Write a function to remove vowels from a string.
Write a function to check whether a string is a palindrome.
Explain aliasing in lists with an example.
Differentiate between list, tuple, and dictionary with examples.
Write a program to accept a comma-separated sequence of words and print them in sorted
order.
Unit 4 – File Operations
Explain different file opening modes in Python.
Write a program to reverse the contents of a file character by character, separating each
character with a comma.
Write a program to count the number of lines, words, and characters in a file.
Demonstrate the use of the seek() method with examples.
Write a program to capitalize the first letter of every word in a file.
Write a program to print and count four-letter words in a file.
Write a program to count how many times the letter 'e' occurs in a file.
Unit-5 - Python Packages
Part 1 – NumPy
What is NumPy? Why is it faster than Python lists?
Differentiate between 0-D, 1-D, 2-D, and 3-D arrays with examples.
Explain the use of functions: [Link](), [Link](), [Link](), [Link]().
Write a program to generate 5 random integers between 10 and 50 using NumPy.
Write a Python program to perform matrix addition, subtraction, multiplication, and
transpose using NumPy.
Explain the difference between element-wise multiplication and matrix multiplication in
NumPy.
Part 2 – Matplotlib
What is Matplotlib? Explain its advantages and disadvantages.
Write a program to plot a simple line graph with title and axis labels.
Write a program to create a bar chart showing marks of three students.
Write a program to create a pie chart showing percentage distribution of languages.
Explain the difference between line plot, bar chart, pie chart, and histogram with examples.
Write a program to plot two lines on the same graph with legends.
Part 3 – Pandas
What is Pandas? Why is it widely used in data science?
Differentiate between Series and DataFrame with examples.
Write a program to create a DataFrame from dictionary and display its contents.
Explain the use of functions: read_csv(), head(), tail(), info(), describe().
Write a program to read data from a CSV file and calculate the average marks of each
student.
Write a program to filter students with marks greater than 80 using Pandas.
Part 4 – Tkinter
What is Tkinter? Why is it used in Python?
Explain the role of Tk() and mainloop() in Tkinter applications.
Write a program to create a simple window with a label.
Write a program to create a button that closes the application when clicked.
Write a program to create an Entry widget for user input.
Differentiate between Checkbutton, Radiobutton, and Listbox with examples.
Write a program to create a menu bar with File and Help menus.