DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
With Python, it is possible to use the ** operator to calculate powers
>>
>
5
**
2
# 5 squared
25
>>
>
2
**
7
# 2 to the power of 7
128
Source by docs.python.org #
PREVIOUS
NEXT
Tagged:
#With
#operator
#calculate
#powers
ADD COMMENT
Topic
COMMENT
Name
9+8 =
Submit