Example HTML page

P-Assignment 16: Conditional Statements-part 2

Hi, Please do the following programs.

  1. Write a python script to take marks of 4 subjects and display the grade of a student. if avg>=90 then he got grade a.similarly between the avg>=80 and avg<90 he got grade b, avg>=70 and avg<80 grade c and the avg>=60 and avg<70 is grade d.otherwise grade f.
  2. Write a python script to print an identity matrix .
  3. Write a python script to print numbers in a range(1,upper) without using any loops.
  4. Write a python script to print numbers in a range(1,lower) without using any loops.
  5. Write a python script to find the maximum digit of a float number.
  6. Write a python script to find the minimum digit of a float number.
  7. Write a Python program to find those numbers which are divisible by 5 and multiple of 9, between 1300 and 2500 (both included)
  8. Write a Python program that accepts a word from the user and reverse it.
  9. Write a Python program that prints all the numbers from 0 to 8 except 5 and 7.(Use ‘Continue’ statement)
  10. Write a Python program to print alphabet pattern ‘R’
Example HTML page

Leave a Reply

Your email address will not be published. Required fields are marked *

Pin It on Pinterest