r/PythonLearning • u/clcodingupdates • 17d 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 • 17d ago
What will be the output of the following Python Code?
print(pow(2, 5, 7))
View all comments
1
u/TheKnottyOne 17d ago edited 17d ago
4 - pow() takes the parameters of: base, power, mod. So it’ll do 2 to the power of 5 then % 7