How can I do the oppisite function of ** in python? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How can I do the oppisite function of ** in python?

26th Nov 2017, 2:44 PM
Josu Toja
Josu Toja - avatar
3 Answers
+ 1
By opposite, if you mean : obtaining N-th root of some number instead of getting it's N-th power just use - a**(1/n) instead of a**n.
26th Nov 2017, 3:13 PM
Anil
Anil - avatar
0
Ok thank you
26th Nov 2017, 3:30 PM
Josu Toja
Josu Toja - avatar
0
@Josu: a like won't hurt :)
26th Nov 2017, 3:50 PM
Anil
Anil - avatar