Last active
January 23, 2016 01:00
-
-
Save qrtt1/7be8a4bf85a51909edf9 to your computer and use it in GitHub Desktop.
linode network price
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# (DataTransfer, Price) pair | |
price_list = ((2, 10), (3, 20), (4, 40), (8, 80), (16, 160), (20, 320), (20, 480), (20, 640), (20, 960)) | |
for network, price in price_list: | |
transfer_in_gb = 1024.0 * network | |
print "price level %3d, per gb cost %5.4f" % (price, price / transfer_in_gb) | |
## RESULT: | |
## price level 10, per gb cost 0.0049 | |
## price level 20, per gb cost 0.0065 | |
## price level 40, per gb cost 0.0098 | |
## price level 80, per gb cost 0.0098 | |
## price level 160, per gb cost 0.0098 | |
## price level 320, per gb cost 0.0156 | |
## price level 480, per gb cost 0.0234 | |
## price level 640, per gb cost 0.0312 | |
## price level 960, per gb cost 0.0469 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment