It looks like you're new here. If you want to get involved, click one of these buttons!
#!/usr/bin/python
import time
print \"Welcome to DizzYs Calculator!\"
time.sleep(2)
print \"1) add\"
print \"2) subtract\"
print \"3) multiply\"
print \"4) divide\"
time.sleep(1)
userChoice = int(raw_input(\"Enter a number as an option: \"))
while True:
if userChoice == 1:
addNumberA = int(raw_input(\"What is the first number you would like to add: \"))
addNumberB = int(raw_input(\"What is the second number you would like to add: \"))
addEquals = addNumberA + addNumberB
print addEquals
time.sleep(1)
break
elif userChoice == 2:
subtractNumberA = int(raw_input(\"What is the first number you would like to subtract: \"))
subtractNumberB = int(raw_input(\"What is the second number you would like to subtract: \"))
subtractEquals = subtractNumberA - subtractNumberB
print subtractEquals
time.sleep(1)
break
elif userChoice == 3:
multiplyNumberA = int(raw_input(\"What is the first number you would like to multiply: \"))
multiplyNumberB = int(raw_input(\"What is the second number you would like to multiply: \"))
multiplyEquals = multiplyNumberA * multiplyNumberB
print multiplyEquals
time.sleep(1)
break
elif userChoice == 4:
divideNumberA = int(raw_input(\"What is the first number you would like to divide: \"))
divideNumberB = int(raw_input(\"What is the second number you would like to divide: \"))
divideEquals = divideNumberA / divideNumberB
print divideEquals
time.sleep(1)
break
else:
print \"You have chosen an invalid option, goodbye\"
time.sleep(1)
break
print \"There ya go and bye.\"
time.sleep(1)
I'm learning python at the moment. :D
Can you check of my calculator.
#!/usr/bin/python
import time
print \"Welcome to DizzYs Calculator!\"
time.sleep(2)
print \"1) add\"
print \"2) subtract\"
print \"3) multiply\"
print \"4) divide\"
time.sleep(1)
userChoice = int(raw_input(\"Enter a number as an option: \"))
while True:
if userChoice == 1:
addNumberA = int(raw_input(\"What is the first number you would like to add: \"))
addNumberB = int(raw_input(\"What is the second number you would like to add: \"))
addEquals = addNumberA + addNumberB
print addEquals
time.sleep(1)
break
elif userChoice == 2:
subtractNumberA = int(raw_input(\"What is the first number you would like to subtract: \"))
subtractNumberB = int(raw_input(\"What is the second number you would like to subtract: \"))
subtractEquals = subtractNumberA - subtractNumberB
print subtractEquals
time.sleep(1)
break
elif userChoice == 3:
multiplyNumberA = int(raw_input(\"What is the first number you would like to multiply: \"))
multiplyNumberB = int(raw_input(\"What is the second number you would like to multiply: \"))
multiplyEquals = multiplyNumberA * multiplyNumberB
print multiplyEquals
time.sleep(1)
break
elif userChoice == 4:
divideNumberA = int(raw_input(\"What is the first number you would like to divide: \"))
divideNumberB = int(raw_input(\"What is the second number you would like to divide: \"))
divideEquals = divideNumberA / divideNumberB
print divideEquals
time.sleep(1)
break
else:
print \"You have chosen an invalid option, goodbye\"
time.sleep(1)
break
print \"There ya go and bye.\"
time.sleep(1)
I'm learning python at the moment. :D
Can you check of my calculator.
#!/usr/bin/python
import time
print \"Welcome to DizzYs Calculator!\"
time.sleep(2)
print \"1) add\"
print \"2) subtract\"
print \"3) multiply\"
print \"4) divide\"
time.sleep(1)
userChoice = int(raw_input(\"Enter a number as an option: \"))
while True:
if userChoice == 1:
addNumberA = int(raw_input(\"What is the first number you would like to add: \"))
addNumberB = int(raw_input(\"What is the second number you would like to add: \"))
addEquals = addNumberA + addNumberB
print addEquals
time.sleep(1)
break
elif userChoice == 2:
subtractNumberA = int(raw_input(\"What is the first number you would like to subtract: \"))
subtractNumberB = int(raw_input(\"What is the second number you would like to subtract: \"))
subtractEquals = subtractNumberA - subtractNumberB
print subtractEquals
time.sleep(1)
break
elif userChoice == 3:
multiplyNumberA = int(raw_input(\"What is the first number you would like to multiply: \"))
multiplyNumberB = int(raw_input(\"What is the second number you would like to multiply: \"))
multiplyEquals = multiplyNumberA * multiplyNumberB
print multiplyEquals
time.sleep(1)
break
elif userChoice == 4:
divideNumberA = int(raw_input(\"What is the first number you would like to divide: \"))
divideNumberB = int(raw_input(\"What is the second number you would like to divide: \"))
divideEquals = divideNumberA / divideNumberB
print divideEquals
time.sleep(1)
break
else:
print \"You have chosen an invalid option, goodbye\"
time.sleep(1)
break
print \"There ya go and bye.\"
time.sleep(1)
Looks like a very nice calculator good job.