Python Forum

Full Version: Asking help as a new beginner in Python
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I am asking for writing a python for a simple calculator but i really have no idea for it...
Here is an expected outcome of the program:
Output:
Please in put your formula: 1 +2 -3 The answer is: 0 Continue?: Y Please in put your formula: 1 * 3 * 4 The answer is: 12 Continue?: Y Please in put your formula: 1 + 3 * 4 The answer is: 0 Continue?: Y Please in put your formula: 4 /3 + 6 The answer is: 7.33 Continue?: N Bye Bye
Looking forward to someone could help me to learn and clarify the concepts for me. Thank you so much
Please post a minimal code sample (in python code tags) for the specific part your stuck on, explain what you expect to happen and what is actually happening and any errors received in error tags.
If you are looking to do that then learn how to use variables, input, and while and for loops
I was going to ask if the answers needed to follow that standard order of operations, or just be evaluated left to right. However, the third result from the sample output doesn't match either calculation method.