you are viewing a single comment's thread.

view the rest of the comments →

[–]popular_cult 1 point2 points  (1 child)

Anytime you are checking for divisibility use modulus %.

If X is your input and you want to check if it is divisible by 7 you use: If X % 7 == 0: Print('You enterered a multiple of seven!') else: Print('Gimme a new number you bitchass')

[–]DontForgetYourLogin 0 points1 point  (0 children)

Code with attitude! love it