``` # 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)) ```
author | python-dev |
---|---|
permlink | python-program-to-check-leap-year |
category | python-dev |
json_metadata | {"tags":["python-dev"],"app":"hiveblog/0.1","format":"markdown"} |
created | 2020-03-22 09:36:18 |
last_update | 2020-03-22 09:36:18 |
depth | 0 |
children | 1 |
last_payout | 2020-03-29 09:36:18 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.264 HBD |
curator_payout_value | 0.264 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 468 |
author_reputation | 5,457,648,648,750 |
root_title | "Python Program to Check Leap Year" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 96,537,153 |
net_rshares | 1,666,494,591,203 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
xiguang | 0 | 203,796,657,724 | 100% | ||
crypto.income | 0 | 1,462,697,933,479 | 100% |
[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.
author | steemcleaners |
---|---|
permlink | q7v2pl |
category | python-dev |
json_metadata | {"links":["http://www.plagiarism.org/plagiarism-101/what-is-plagiarism/"],"app":"hiveblog/0.1"} |
created | 2020-03-27 16:49:00 |
last_update | 2020-03-27 16:49:00 |
depth | 1 |
children | 0 |
last_payout | 2020-04-03 16:49:00 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.467 HBD |
curator_payout_value | 0.467 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 368 |
author_reputation | 2,789,224,428,782,668 |
root_title | "Python Program to Check Leap Year" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 96,602,922 |
net_rshares | 3,430,350,174,637 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
adm | 0 | 2,078,964,492,195 | 9.5% | ||
sc-fund | 0 | 68,947,731,341 | 12.5% | ||
bdvoter | 0 | 1,282,437,951,101 | 2% |