-1
It turns out that its function numpar has no return when the number is not even, as it does not have an explicit return, it will end up returning None.
A possible solution is to make your function in a pair not return a number but a logical value, indicating whether the number received is even or not:
def numpar(numero):
return numero % 2 == 0
for numero in range(0,20):
if numpar(numero):
print(numero)
Guy next did puts the code. It gets really bad by picture
– Tmilitino
Beauty, it’s the first time using the site kkk
– FilipeFrs
No bullshit, man. If you can, put your code in. Just to be right.
– Tmilitino