Question 1 If-Elif-Else Opposite Case

Convert Alphabet Character to Opposite Case

Write a Python program using an if-elif-else ladder to check if an input character is lowercase, uppercase, or non-alphabet, converting letters to their opposite casing.

Solution Code Screenshot Click image to zoom
Alphabet Opposite Case Solution
Question 2 If-Elif-Else Electricity Bill

Calculate Electricity Bill with Slab Rates

Write a Python program to read total electricity units consumed and compute the net electricity bill based on tiered tariff rates using an if-elif-else structure.

Solution Code Screenshot Click image to zoom
Calculate Electricity Bill Solution
Question 3 If-Elif-Else Courier / Parcel Charges

Calculate Parcel Delivery Charges Based on Weight

Write a Python program to calculate courier or shipping fees according to parcel weight categories using an if-elif-else ladder.

Solution Code Screenshot Click image to zoom
Calculate Weight Charge Solution
Question 4 If-Elif-Else Triangle Classification

Classify Triangle (Equilateral, Isosceles, Scalene)

Write a Python program to read three side lengths of a triangle and classify whether it is an Equilateral, Isosceles, or Scalene triangle using if-elif-else.

Solution Code Screenshot Click image to zoom
Check 3 Triangle Solution
Question 5 If-Elif-Else Character Classification

Classify Character into Uppercase, Lowercase, Digit, Space, or Special Symbol

Write a Python program using if-elif-else to classify any given keyboard character as uppercase, lowercase, numeric digit, whitespace, or special character.

Solution Code Screenshot Click image to zoom
Check Upper Lower Digit Space Solution
Question 6 If-Elif-Else Library Fine

Calculate Library Overdue Fine Based on Days Late

Write a Python program to input the number of overdue book return days and calculate the total fine using progressive fine rate slabs in an if-elif-else ladder.

Solution Code Screenshot Click image to zoom
Library Fine Calculate Solution
Question 7 If-Elif-Else Calendar Days

Determine Number of Days in a Month by Month Number

Write a Python program that accepts an integer between 1 and 12 representing a month. Using conditional statements, determine and print the total number of days in that month.

Solution Code Screenshot Click image to zoom
Days in Month Solution
Question 8 If-Elif-Else Profit / Loss / Breakeven

Evaluate Profit, Loss, or Breakeven on Product Sale

Write a Python program to read Cost Price and Selling Price, displaying whether the merchant achieved Profit, suffered Loss, or reached Breakeven (No Profit, No Loss).

Solution Code Screenshot Click image to zoom
Profit Loss Breakeven Solution
Question 9 If-Elif-Else Menu-Driven

Menu-Driven Program for Mathematical Operations

Write a menu-driven Python program that displays a four-item menu using character choices (a, b, c, d).

Solution Code Screenshot Click image to zoom
Select Menu Solution
Solution Code Screenshot Click image to zoom
Select Menu Solution
Question 10 If-Elif-Else Grade Assignment

Compute Total, Percentage, and Assign Grade

Write a Python program to accept subject marks, compute aggregate total and percentage, and assign letter grades (A, B, C, D, Fail) using an if-elif-else ladder.

Solution Code Screenshot Click image to zoom
Grade Total Percentage Solution
Question 11 If-Elif-Else Showroom Discount

Showroom Billing with Tiered Discount Calculation

Write a program to input the total cost and to compute and display the amount to be paid by the customer after availing the discount.The company has announced the following festival discounts on the purchase of items based on the total cost of the items purchased

Solution Code Screenshot Click image to zoom
Showroom Discount Solution
Question copied to clipboard!