Re:Why Python 4.0 might never arrive, according to its creator
by leephillips on Thursday June 03, 2021 @12:57PM
(#27384134)
Python is strongly typed, and your examples show the strong (dynamic) type system in action. An example of a language that is not strongly typed would be Javascript, where you can do 1 + "1". In Python, that gets you a typeerror, because Python is strongly typed.
Re:Why Python 4.0 might never arrive, according to its creator
by LeifCarrotson on Thursday June 03, 2021 @01:26PM
(#27384546)
Sorry, you're right, it's strongly typed but it is not statically typed.
In Python 3, it always gives a floating-point result. You can use a floor division operator if you want to round everything (including integers) towards negative infinity.
See https://www.python.org/dev/peps/pep-0238/ for details.