create account

Learn to play with numbers in Python by filler

View this thread on: hive.blogpeakd.comecency.com
· @filler ·
$1.69
Learn to play with numbers in Python
<center>![py 3 num.JPG](https://cdn.steemitimages.com/DQmZWppfLotsnN9Hbyo5E6bX7qqK7LG2kNgRTS3FiK7nwjm/py%203%20num.JPG)</center>

In order to become an expert in whatever you do, it is best to practice it on a daily basis and the same is true of Python too. 

It is best to use Google colab if you are just starting out and do not want to download the entire library. 

The screenshot shows how simple calculations are done in Python. 

Python is easier to learn especially if you are a beginner and want to learn how to code without becoming confused by all of the tech stuff. 

Try these out and see if you get it right. The errors that do occur are mostly because of indentation, in Python. 

<center>![py num 3a.JPG](https://cdn.steemitimages.com/DQmay81HkBqCF8T2j1KMXZnMyPC4r7wCDpHTV3uou5EUkSY/py%20num%203a.JPG)</center>

In the first case, the maximum value is written down
and in the second print, min returns the minimum value
The round command rounds off a decimal to the nearest. So, 2.3 is 2 and 2.8 is 3. 

<center>![python 3b.JPG](https://cdn.steemitimages.com/DQmYZyk56Hbhwj9n8MLt3noRXFxTCufSYauohJMCFQPEU4F/python%203b.JPG)</center>

## from math import * - This helps you to use math functions easily. 
So, sqrt means square root and sqrt of 36 is shown as 6.0 in the screenshot above.

The floor gives you the lesser among the two and so shows the result as 3. 
The ceil gives you a higher value and this gives input as 4. 


images - screenshots

I hope you find these useful.
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 101 others
properties (23)
authorfiller
permlinklearn-to-play-with-numbers-in-python
categorycoding
json_metadata{"tags":["coding","python","math","neoxian","computer"],"image":["https://cdn.steemitimages.com/DQmZWppfLotsnN9Hbyo5E6bX7qqK7LG2kNgRTS3FiK7nwjm/py%203%20num.JPG","https://cdn.steemitimages.com/DQmay81HkBqCF8T2j1KMXZnMyPC4r7wCDpHTV3uou5EUkSY/py%20num%203a.JPG","https://cdn.steemitimages.com/DQmYZyk56Hbhwj9n8MLt3noRXFxTCufSYauohJMCFQPEU4F/python%203b.JPG"],"app":"neoxiancity/0.1","format":"markdown","canonical_url":"https://www.neoxian.city/@filler/learn-to-play-with-numbers-in-python"}
created2019-11-03 09:56:48
last_update2019-11-03 09:56:48
depth0
children1
last_payout2019-11-10 09:56:48
cashout_time1969-12-31 23:59:59
total_payout_value0.839 HBD
curator_payout_value0.856 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length1,495
author_reputation4,924,532,976,740
root_title"Learn to play with numbers in Python"
beneficiaries
0.
accountneoxianburn
weight500
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id92,154,566
net_rshares7,107,938,830,048
author_curate_reward""
vote details (165)
@steemitboard ·
Congratulations @filler! You have completed the following achievement on the Steem blockchain and have been rewarded with new badge(s) :

<table><tr><td><img src="https://steemitimages.com/60x60/http://steemitboard.com/img/notifications/postallweek.png"></td><td>You published a post every day of the week</td></tr>
</table>

<sub>_You can view [your badges on your Steem Board](https://steemitboard.com/@filler) and compare to others on the [Steem Ranking](https://steemitboard.com/ranking/index.php?name=filler)_</sub>
<sub>_If you no longer want to receive notifications, reply to this comment with the word_ `STOP`</sub>


To support your work, I also upvoted your post!


**Do not miss the last post from @steemitboard:**
<table><tr><td><a href="https://steemit.com/steemfest/@steemitboard/steemfest-meet-the-steemians-contest"><img src="https://steemitimages.com/64x128/https://cdn.steemitimages.com/DQmasWw4jQHwxng82DKxY6Q6tVg9mWcto4xcDURs8knFgCa/image.png"></a></td><td><a href="https://steemit.com/steemfest/@steemitboard/steemfest-meet-the-steemians-contest">SteemFest⁴  - Meet the Steemians Contest</a></td></tr></table>

###### [Vote for @Steemitboard as a witness](https://v2.steemconnect.com/sign/account-witness-vote?witness=steemitboard&approve=1) to get one more award and increased upvotes!
properties (22)
authorsteemitboard
permlinksteemitboard-notify-filler-20191104t032956000z
categorycoding
json_metadata{"image":["https://steemitboard.com/img/notify.png"]}
created2019-11-04 03:29:57
last_update2019-11-04 03:29:57
depth1
children0
last_payout2019-11-11 03:29:57
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length1,308
author_reputation38,975,615,169,260
root_title"Learn to play with numbers in Python"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id92,178,386
net_rshares0