Leap Year Program in Python

Advertisements

Prev Tutorial Next Tutorial

Leap Year Program in Python

Using if...else statement check year is divisible by 4 or not. If year is divisible by 4 it is leap year otherwise not leap year.

Leap Year Program in Python

year = int(input("Enter any Year: "))
if year%4==0:  
    print  "Year is Leap"  
else:  
    print "Year is not Leap"  

Output 1

	
Enter any year: 2000
Year is Leap

Output 2

	
Enter any year: 2005
Year is not Leap

Prev Tutorial Next Tutorial

Advertisements

Buy This Ad Space @$20 per Month, Ad Size 600X200 Contact on: hitesh.xc@gmail.com or 9999595223

Pure VPN Privide Lowest Price VPN Just @ $1.65. Per Month with Non Detected IP Lowest Price Non Detected IP VPN

Magenet is best Adsense Alternative here we earn $2 for single link, Here we get links ads. Magenet

For Projects 9999595223

Google Advertisements


Buy Websites 9999595223

Buy College Projects with Documentation Contact on whatsapp 9999595223. Contact on: hitesh.xc@gmail.com or 9999595223 Try this Keyword C++ Programs

Advertisements