Answered step by step
Verified Expert Solution
Link Copied!

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?
image text in transcribed
image text in transcribed
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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Driven Web Sites

Authors: Mike Morrison, Joline Morrison

1st Edition

061901556X, 978-0619015565

More Books

Students also viewed these Databases questions

Question

What is the basis for Security Concerns in Cloud Computing?

Answered: 1 week ago

Question

Describe the three main Cloud Computing Environments.

Answered: 1 week ago