if x%2==0: what does this mean | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
+ 1

if x%2==0: what does this mean

31st Oct 2020, 7:12 AM
Ahmed Ali
Ahmed Ali - avatar
1 Respuesta
+ 8
%-->gives remainder X%2==0-->means if x is completely divisible by 2 (a popular check for even nos).
31st Oct 2020, 7:16 AM
Alphin K Sajan
Alphin K Sajan - avatar