{PRACTICE PROBLEMS} Python Programming
{PRACTICE PROBLEMS} Python Programming
Arithmetic Operations
Question: Write a program that asks the user to input two numbers and then calculates
and displays:
• The sum of the two numbers
• The difference (first number - second number)
• The product
• The quotient (first number divided by second number)
• The remainder when the first number is divided by the second number
5. Simple Calculator- Question: Write a program that asks the user to enter two
numbers and an arithmetic operation (+, -, *, /, %). Perform the corresponding
operation and display the result.
6. Largest of Three Numbers - Question: Write a program that takes three numbers as
input and determines which one is the largest.
8. Leap Year Checker (Using MOD) - Question: Write a program that asks the user to
enter a year and checks if it's a leap year using the following conditions:
• A year is a leap year if it is divisible by 4.
• However, if the year is divisible by 100, it is not a leap year.
• But if the year is also divisible by 400, it is a leap year.