Python Forum
Asking help as a new beginner in Python
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Asking help as a new beginner in Python
#1
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
Reply
#2
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.
Reply
#3
If you are looking to do that then learn how to use variables, input, and while and for loops
Reply
#4
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.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020