Python Assignments #3
Python Assignments #3
Objective
Practice using conditional statements in Python to make decisions based on user input or fixed
values.
Instructions
Example Output:
Enter a number: -5
The number is negative.
2. Even or Odd
Write a Python program that asks the user to enter a number and prints whether it is even
or odd using if…else.
Example Output:
Enter a number: 8
The number is even.
3. Grading System
Write a Python program that asks the user to enter their score (0–100), and then prints the
corresponding grade using if…elif…else:
o 90 and above → A
o 80–89 → B
o 70–79 → C
o 60–69 → D
o Below 60 → F
Example Output:
Example Output:
Submission Guidelines
Best Regards
Prof Mahmoud Maqableh