Skip to content

Instantly share code, notes, and snippets.

@koji
Last active May 25, 2017 01:59
Show Gist options
  • Save koji/edc781df6cb0c81003d62553e954f9e6 to your computer and use it in GitHub Desktop.
Save koji/edc781df6cb0c81003d62553e954f9e6 to your computer and use it in GitHub Desktop.
python_calc created by sleepy-maker - https://repl.it/IQ0d/3
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