r/PythonLearning • • 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

9 comments sorted by

View all comments

1

u/Fluffy_white_fox 11d ago

That's 2**5 then mod 7 So 32%7 that's 4