0
Why is the answer 1 ?
What is the output of this code ? my_variable = pow(2,2,3) print(my_variable)
2 Antworten
+ 1
Jan Markus How can the third arguement , i.e. mod be beneficial ? We can perform that operation otherwise as well ,right ?
0
Powers with small numbers could be huge. If you know that you only need the reminder of the power it could be calculated much more efficiant and in that sense this function is beneficial.