Quantcast
Channel: Calculator final project in Python - Code Review Stack Exchange
Browsing latest articles
Browse All 4 View Live

Answer by user3590710 for Calculator final project in Python

I made some changes. Is there anything else I have missed that could be considered bad practice? Main def main(): #Operators are +,-,*,/ #Special operator are c and esc calculator() Calculator def...

View Article


Answer by J_H for Calculator final project in Python

elif choice == '2': instructions() main() Ummm, that's probably not exactly what you want. Python lacks a goto statement, so the usual idiom would be to wrap the whole thing in some sort of while...

View Article


Answer by 200_success for Calculator final project in Python

You are using function calls as if they were goto labels. That is a huge sin: it makes your program spaghetti code. If you want a loop, then write a loop. For example, main() should look like: def...

View Article

Calculator final project in Python

In my final project for my Python course, I am required to create a calculator program. I really need someone to look over my code and tell me if I have met all the requirements for this project. Here...

View Article
Browsing latest articles
Browse All 4 View Live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>