Skip to content

Instantly share code, notes, and snippets.

@alex-ber
Last active September 13, 2022 20:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alex-ber/a381ad7167c9ff65bcad6d7ddfb8752a to your computer and use it in GitHub Desktop.
Save alex-ber/a381ad7167c9ff65bcad6d7ddfb8752a to your computer and use it in GitHub Desktop.
03_int3.py
a = 7
b = 2
c1 = a // b
r = a % b
print(f'integer division is {c1} of type {type(c1)}')
print(f'reminder is {r}')
c2 = a / b
print(f'division is {c2} of type {type(c2)}')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment