What is the difference between two and one sign (Python) (beginner level)?

Hello,

I recently completed a few tasks with Python. For some, a single "*" was enough for the product, while for others, I had to write two.

So what is the difference between one and two operators?

Your reply is greatly appreciated.

Thanks in advance!

(1 votes)
Loading...

Similar Posts

Subscribe
Notify of
1 Answer
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
mihisu
1 year ago

In some cases, a single “*” was enough for the product, with others I had to write two.

** will not be multiplicationbut potted.

Example:

  • 5 * 3 stands for the product 5 ⋅ 3 with the result 15.
  • 5 ** 3 stands for the potency 53 with the result 125.

By the way, the language “Python”, not “Phyton”.