Simple Python Scripts
Scripts for simple Python programs
Monday, 5 December 2016
To check the year is leap year or not
# To check the year is leap year or not
#to accept year
y=int(input('enter year'))
#giving condition in while loop
while(y%4==0):
print( y , 'is leap year')
break
else:
print( y , 'is not a leap year')
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment