Last active
May 25, 2017 01:59
-
-
Save koji/edc781df6cb0c81003d62553e954f9e6 to your computer and use it in GitHub Desktop.
python_calc created by sleepy-maker - https://repl.it/IQ0d/3
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
from decimal import * | |
print(Decimal('0.1') + Decimal('0.1') + Decimal('0.1')) | |
print(0.1 + 0.1 + 0.1) | |
myHope = input('what do you want to do during the summer?') | |
print('you want to ' + myHope + '. Nice!') | |
a = 3 | |
b = 5 | |
print('a+b=' + str(a+b)) | |
x = input('put a number') | |
y = input('put another number') | |
print('result: ' + str(int(x) + int(y) )) | |
def add(x,y): | |
print('{0} + {1} = {2}'.format(x, y, x+y)) | |
add(50,6) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment