PYTHON PRACTICAL EXERCISES
Topic: Input, Processing and Output
Instructions to Students
Choose ANY THREE (3) exercises to complete.
Use input(), variables, and print() only.
Do NOT use if statements or loops.
Show clear and neat output.
Exercise 1: Student Greeting
Problem Statement
Write a Python program that:
1. Asks the user to enter their name
2. Displays a greeting message
Example Output:
Hello, John! Welcome to programming.
Exercise 2: Rectangle Area Calculator
Problem Statement
Write a Python program that:
1. Asks the user to enter the length
2. Asks the user to enter the width
3. Calculates the area
4. Displays the result
Formula:
Area = length × width
Exercise 3: Circle Circumference Calculator
Problem Statement
Write a Python program that:
1. Asks the user to enter the radius
2. Calculates the circumference
3. Displays the result
Formula:
Circumference = 2 × 3.14 × radius
Exercise 4: Simple Interest Calculator
Problem Statement
Write a Python program that:
1. Asks the user to enter:
o Principal amount
o Rate
o Time
2. Calculates the simple interest
3. Displays the result
Formula:
Interest = (principal × rate × time) / 100
Exercise 5: Total and Average Marks
Problem Statement
Write a Python program that:
1. Asks the user to enter three subject marks
2. Calculates the total marks
3. Calculates the average marks
4. Displays both results
Exercise 6: Salary Breakdown Calculator
Problem Statement
Write a Python program that:
1. Asks the user to enter:
o Hours worked
o Hourly rate
2. Calculates the total salary
3. Calculates a bonus of 10% of the salary
4. Calculates the final salary (salary + bonus)
5. Displays all results
Exercise 7: Temperature Converter
Problem Statement
Write a Python program that:
1. Asks the user to enter temperature in Celsius
2. Converts it to Fahrenheit
3. Converts it to Kelvin
4. Displays all results
Formulas:
Fahrenheit = (Celsius × 9/5) + 32
Kelvin = Celsius + 273
Exercise 8: Grocery Store Receipt
Problem Statement
Write a Python program that:
1. Asks the user to enter:
o Customer name
o Price of item 1
o Price of item 2
o Price of item 3
2. Calculates the total cost
3. Calculates VAT (15% of total cost)
4. Calculates the final amount (total + VAT)
5. Displays a formatted receipt