Python Forum
Asking help as a new beginner in Python - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: Homework (https://python-forum.io/forum-9.html)
+--- Thread: Asking help as a new beginner in Python (/thread-17748.html)



Asking help as a new beginner in Python - rockenheaven - Apr-22-2019

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


RE: Asking help as a new beginner in Python - Yoriz - Apr-22-2019

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.


RE: Asking help as a new beginner in Python - SheeppOSU - Apr-22-2019

If you are looking to do that then learn how to use variables, input, and while and for loops


RE: Asking help as a new beginner in Python - ichabod801 - Apr-22-2019

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.