Double Star calculation

Viewed 62

I am a newbie in Python and I request help! Use Python to calculate this:

(((1+2)*3)/4)5 

How do you calculate this in Python using double star operator? It shows errors when I try it this way:

print(((1+2)*3)/4)**5
1 Answers

As per my understnding on your code you should use the statement print((((1+2)*3)/4)**5) to calculate your operation. If you use * it means multiply or if you use ** it means to the power of.

Related