Answered step by step
Verified Expert Solution
Question
1 Approved Answer
In this assignment we had to create a calculator using Python and it has to run in Python 3. I don't think mine is working
In this assignment we had to create a calculator using Python and it has to run in Python 3. I don't think mine is working correctly. What did I do wrong?
llt/usr/bin python plain def question What is your option? n Input a number contin True opt -1 accum 0.0 while contin print "Accumulator accum) print ("Please choose print ("1) Addition") print ("Z) Subtraction") print "3) Multiplication") print ("4) Division") print ("5) Square root") print "6) Clear") print ("0) Exit") check int input (question)) opt int (input (question)) if opt- 0 contin False elif opt--1: num float input (n)) accum enum elif opt- 2 num float input (n)) num elif opt- 3: num float input (n)) accum*-mum Read 51 li Get Help Writeout. R Read File Ne Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started