Python Practice - 2
Python Practice - 2
Year – 9
Computing
Python Practice Questions
Questions Using if...else Statements:
5. Grade Calculator
Accept a student's marks (0-100) and print their grade based on the following:
o 90 and above → A
o 80-89 → B
o 70-79 → C
o 60-69 → D
o Below 60 → F
3. Multiplication Table
Ask the user for a number and print its multiplication table up to 10 using a while loop.
4. Count Digits of a Number
Take a positive integer as input and count how many digits it has using a while loop.
5. Reverse a Number
Write a program that takes a number and reverses it (e.g., input: 1234, output: 4321).