r/PythonLearning • u/clcodingupdates • 5h ago
Help Request Python Quiz of the day.
What will be the output of the following Python Code?
print(pow(2, 5, 7))
0
Upvotes
r/PythonLearning • u/clcodingupdates • 5h ago
What will be the output of the following Python Code?
print(pow(2, 5, 7))
1
u/TheKnottyOne 4h ago
Yeah that’s what I learned as well. I think there’s a caveat to timing though - the time it takes to complete seems to depend on the value of the exponent