Posts

Python

  BASIC EXAMPLE PROBLEMS 1)AIM: Implement the python program script for checking the given year is leap year or not PROGRAM:     y=int(input(" Entre the year :")) if y%100==0:     if y%400==0:         print(y, "is a leap year ")     else:         print(y, "is not a leap year ") else:     if y%4==0:         print(y," is a leap year ")     else:         print(y, "is not a leap year ") 2)AIM: Implement the python script finding biggest number among three numbers PROGRAM: a=int(input("enter the first number :")) b=int(input("enter the second number:")) c=int(input("enter the third number :")) if a>b and a>c : print(" biggest =",a) else : if b>c : print("biggest =",b) else : print("biggest =",c) 3) AIM: Implement python script for displaying the reversal of a...