Python Practise Makes Perfect HELP


#1


Please make your reply clear , by clear i mean please give me an example of the code , because i will understand better that way , Thanks!


#2

HI the moduloe % give the remains of the division so here

if number % 3 :

its missing something after the number 3

Spoiler

if number % 3 == 0:


#3

I don't really see the mistake in my code , Could you point it out please?
EDIT NVM , I clicked on the spoiler , Let me try it now , Thanks.


#4

The modulo % works like that

9 % 3 = 0  #it remain 0

9 % 2 = 1 #it remain 1

so if you want to check if a number is evenly divisible by an other number the remian of the division should be equal to 0.


#5

I understand , And it has worked! Thank you so much!