create account

Python Program to Check Leap Year by python-dev

View this thread on: hive.blogpeakd.comecency.com
· @python-dev ·
$0.53
Python Program to Check Leap Year
``` 
# Python program to check if year is a leap year or not

year = 2000

# To get year (integer input) from the user
# year = int(input("Enter a year: "))

if (year % 4) == 0:
   if (year % 100) == 0:
       if (year % 400) == 0:
           print("{0} is a leap year".format(year))
       else:
           print("{0} is not a leap year".format(year))
   else:
       print("{0} is a leap year".format(year))
else:
   print("{0} is not a leap year".format(year))
 ```
👍  ,
properties (23)
authorpython-dev
permlinkpython-program-to-check-leap-year
categorypython-dev
json_metadata{"tags":["python-dev"],"app":"hiveblog/0.1","format":"markdown"}
created2020-03-22 09:36:18
last_update2020-03-22 09:36:18
depth0
children1
last_payout2020-03-29 09:36:18
cashout_time1969-12-31 23:59:59
total_payout_value0.264 HBD
curator_payout_value0.264 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length468
author_reputation5,457,648,648,750
root_title"Python Program to Check Leap Year"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id96,537,153
net_rshares1,666,494,591,203
author_curate_reward""
vote details (2)
@steemcleaners ·
$0.93
[Plagiarism](http://www.plagiarism.org/plagiarism-101/what-is-plagiarism/) is the copying & pasting of others work without giving credit to the original author or artist. Plagiarized posts are considered fraud and violate the intellectual property rights of the original creator. 

Fraud is discouraged by the community and may result in the account being Blacklisted.
👍  , ,
properties (23)
authorsteemcleaners
permlinkq7v2pl
categorypython-dev
json_metadata{"links":["http://www.plagiarism.org/plagiarism-101/what-is-plagiarism/"],"app":"hiveblog/0.1"}
created2020-03-27 16:49:00
last_update2020-03-27 16:49:00
depth1
children0
last_payout2020-04-03 16:49:00
cashout_time1969-12-31 23:59:59
total_payout_value0.467 HBD
curator_payout_value0.467 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length368
author_reputation2,789,224,428,782,668
root_title"Python Program to Check Leap Year"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id96,602,922
net_rshares3,430,350,174,637
author_curate_reward""
vote details (3)