``` # Python program to check if the input number is odd or even. # A number is even if division by 2 gives a remainder of 0. # If the remainder is 1, it is an odd number. num = int(input("Enter a number: ")) if (num % 2) == 0: print("{0} is Even".format(num)) else: print("{0} is Odd".format(num)) ```
author | python-dev |
---|---|
permlink | python-program-to-check-if-a-number-is-odd-or-even |
category | python-dev |
json_metadata | {"tags":["python-dev"],"app":"hiveblog/0.1","format":"markdown"} |
created | 2020-03-22 09:30:18 |
last_update | 2020-03-22 09:30:18 |
depth | 0 |
children | 2 |
last_payout | 2020-03-29 09:30:18 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.268 HBD |
curator_payout_value | 0.269 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 311 |
author_reputation | 5,457,648,648,750 |
root_title | "Python Program to Check if a Number is Odd or Even" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 96,537,099 |
net_rshares | 1,692,273,874,169 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
xiguang | 0 | 199,748,026,856 | 100% | ||
crypto.income | 0 | 1,492,525,847,313 | 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 | q7v2ol |
category | python-dev |
json_metadata | {"links":["http://www.plagiarism.org/plagiarism-101/what-is-plagiarism/"],"app":"hiveblog/0.1"} |
created | 2020-03-27 16:48:24 |
last_update | 2020-03-27 16:48:24 |
depth | 1 |
children | 0 |
last_payout | 2020-04-03 16:48:24 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.472 HBD |
curator_payout_value | 0.471 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 if a Number is Odd or Even" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 96,602,907 |
net_rshares | 3,458,048,515,223 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
adm | 0 | 2,102,643,177,978 | 9.5% | ||
sc-fund | 0 | 69,987,443,852 | 12.5% | ||
bdvoter | 0 | 1,285,417,893,393 | 2% |
[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 | q7v2pp |
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:03 |
last_update | 2020-03-27 16:49:03 |
depth | 1 |
children | 0 |
last_payout | 2020-04-03 16:49:03 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.467 HBD |
curator_payout_value | 0.466 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 if a Number is Odd or Even" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 96,602,924 |
net_rshares | 3,425,759,277,640 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
adm | 0 | 2,075,030,665,432 | 9.5% | ||
sc-fund | 0 | 68,775,778,170 | 12.5% | ||
bdvoter | 0 | 1,281,952,834,038 | 2% |