¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita0
Print(pow (2,2,3)) ans is 1 how?
2 Respuestas
+ 3
Sai Deepika Kathiri , the third argument if present applies the modulo operation so (2**2)%3 => 1. You can read more here: https://docs.python.org/3.5/library/functions.html#pow
0