Skip to content

Latest commit

 

History

History
15 lines (12 loc) · 188 Bytes

20221203175534.md

File metadata and controls

15 lines (12 loc) · 188 Bytes

Integer division

Python's / performs float division, you can use // for integer division.

>>> s = "this is a string"
>>> len(s)
16
>>> len(s) / 2
8.0
>>> len(s) // 2
8

#types