0% found this document useful (0 votes)
7 views1 page

Python Assignment 8

Uploaded by

sirohiriya5191
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views1 page

Python Assignment 8

Uploaded by

sirohiriya5191
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Python Arithmetic + Comparison Operators Worksheet

Instructions:
Write a Python program for each question. Take input where needed, perform calculations,
and print the result.

1. Bigger Product Check: Ask the user for two numbers. Multiply them and check if the
product is greater than 100.

2. Equal Sum Test: Input three numbers. Check if the sum of the first two numbers is equal
to the third.

3. Discount Eligibility: Ask for the total bill amount. Check if the customer gets a discount
(bill amount ≥ 500).

4. Divide and Compare: Take two numbers. Divide the first by the second and check if the
result is less than 10.

5. Square Power Check: Ask for a number. Calculate its square and check if it is greater than
or equal to 50.

6. Remainder Match: Take two numbers. Find the remainder when the first is divided by the
second. Check if this remainder equals 2.

7. Even Number Verification: Ask the user for a number. Check if it’s even and greater than
20.

8. Triple vs Double: Take a number. Check if triple of it is greater than double of 50.

9. Age vs Experience: Input age and years of experience. Check if the experience is more
than one-third of the age.

10. Average Check: Take three numbers. Find their average and check if it is equal to 50.

You might also like