✅ Module 1: Emerging Trends + Role of Python (Concept + Code Based)
Q1. Write a Python program that simulates a simple IoT temperature sensor. Generate 10 random
temperature readings and print an alert if temperature exceeds a threshold.
Q2. Write a Python program to simulate Big Data filtering: given a large list of numbers, extract all
values greater than the average.
Q3. Create a Python function that mimics a basic AI decision system: if a user’s score is above 80 print
“High Performance”, 50–80 “Average”, else “Needs Improvement”.
✅ Module 2: Python Basics
Q4. Write a Python program that takes two numbers as input and prints:
Sum
Difference
Product
Division
using appropriate operators.
Q5. Write a program to check whether a given identifier name entered by the user is a valid Python
identifier.
Q6. Write a program demonstrating use of all basic data types (int, float, string, boolean) and print their
types using type().
Q7. Write a Python program that takes user input for name and age and prints a formatted output message
using string formatting.
Q8. Write a function that accepts a number and returns its factorial using a while loop.
Q9. Write a program that prints numbers from 1 to 50 but:
prints “Cloud” for multiples of 3
prints “Python” for multiples of 5
prints “CloudPython” for multiples of both.
Q10. Write a Python program that uses nested loops to print a number pattern triangle.
Q11. Write a Python program with a function that checks whether a number is prime. Include simple
debugging print statements to trace execution.
✅ Module 3: Lists and Dictionaries
Q12. Write a Python program to create a list of 10 numbers and:
find the maximum
minimum
sum
average.
Q13. Write a program to traverse a list of strings and print only those words whose length is greater than
5.
Q14. Write a Python program to remove duplicate elements from a list without using sets.
Q15. Create a dictionary of student names and marks. Write a program to:
add a new student
update marks
delete a student
display all records using dictionary traversal.