dougmcleod / python

place for my python backups
0 stars 0 forks source link

calculator #1

Open dougmcleod opened 8 years ago

dougmcleod commented 8 years ago

var = (input("type somthing"))

if(var == "apples"):print ("hello")

print ("welcome to Les Terribles calculator enter a number then choose the method of calculation") number1 = int(input("enter the first number ou would like to do some math to")) print ("you have put in the number " + str(number1)) print ("there are no buttons so in the next line print our Multiply for multiplication, Add for addition, Divide for division and Sub for subtraction") math = (input ("please enter the way you would like to do the math")) print ("you have chosen to " + str(math)) number2 = int(input("enter second number you would like to do math on")) print ("you have put in the number " + str(number2)) print ("calculating...") Multiply =(number1 * number2) Add = (number1 + number2) Divide =(number1 / number2) Sub = (number1 - number2) if(math == "Multiply"):print (Multiply) if(math == "Divide"):print (Divide) if(math == "Add"):print(Add) if(math == "Sub"):print (Sub)

hkvietok commented 7 years ago

I would suggest capitalizing "hello", "welcome to Les...", etc. I think it will look better! :+1:

dougmcleod commented 7 years ago

Thanks for the feedback!

On Oct 3, 2016 11:22 PM, "hkvietok" notifications@github.com wrote:

I would suggest capitalizing "hello", "welcome to Les...", etc. I think it will look better! 👍

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/dougmcleod/python/issues/1#issuecomment-251279288, or mute the thread https://github.com/notifications/unsubscribe-auth/AVWD8gYswPak91aaxoQGT1eBpmtjcx6Aks5qwbhjgaJpZM4KEbLZ .

hkvietok commented 7 years ago

No prob!