Created
August 3, 2021 14:41
-
-
Save alevchuk/e42bd711746edf16facb39650c2288a6 to your computer and use it in GitHub Desktop.
Checks division
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def test(i): | |
s = i / 5 | |
ostatok = s - int(s) | |
if ostatok == 0: | |
print(str(i) + " делится на пять, без остатка") | |
print(10) | |
test(10) | |
print(5) | |
test(5) | |
print(11) | |
test(11) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment