92. Write the python code to generate following pattern using Nested For Loop.
P
PQ
PQR
PQRS
PQRST
93. Write a program in python that accepts marks(out of 100) in five subjects, calculate and display percentage marks, Grade and Remarks (using table given below).
Percentage Range Grade Remarks
90% - 100% A Excellent
75% - 89% B Very Good
60% - 74% C Good
45% - 59% D Average
Below 45% E Need Improvement
94. Write a program in python to take 2 integers from the user. If both integers have the same parity (i.e. both are odd or both are even) then display their sum otherwise display their multiplication as output.
95. Write a program in python that takes three numbers from the user and Otherwise "OK" if these numbers are multiple of either 3 or display "NOT OК".
96. Write a python program to accept a number from the user and check whether it is a palindrome or not.
97. The school library charges a fine for late book returns.
- If the delay is 0 days, there is no fine
- If the delay is 1-5 days, the fine is 22 per day.
- If the delay is 6-10 days, the line is 25 per day
- If the delay is more than 10 days, the fine is ₹10 per day, and a warning is issue
- Write a program in python to calculate the fine based on the number of late days?
- What output should the program give if the book is retuned 19 days late?
- Modify the program to keep asking for number of late days until the user enters valid number? (Here invalid number means negative or decimal value ete.)