Skip to content

Instantly share code, notes, and snippets.

@alevchuk
Created August 3, 2021 14:41
Show Gist options
  • Save alevchuk/e42bd711746edf16facb39650c2288a6 to your computer and use it in GitHub Desktop.
Save alevchuk/e42bd711746edf16facb39650c2288a6 to your computer and use it in GitHub Desktop.
Checks division
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