0
Write a program to illustrate all the arithmetic operations(python)
Please help me with this
5 odpowiedzi
+ 5
Calvin Thomas ,
the op has started just started 2 days ago with joining sololearn and beginning to learn python for beginners. i am sure that your code will run and we all appreciate your work and engagement, but i am also sure that the op will have problems to understand how the code is working.
may be it can help him to get an idea what the code is doing, if a suitable explanation will be given.
thanks for your understanding !
+ 3
It's nothing, but you have to show all arithmetic operations in python as an example! You have to show the work of + ,- , / , // , ** , * ,% these!
Like, print(4 + 5)
0
Aditya Pradhan Here's a code that does the job:
for x in ("+", "-", "/", "*", "%", "//", "**"):
print(7, x, 3, "=", eval("7" + x + "3"))
# Hope this helps
0
Lothar Uh, that's right I guess. I just post what seems obvious to me.
0
Calvin Thomas thnx!