Python · Python 2 vs Python 3

In Python 3, what is the result of each? ``` 10 // 4 10.0 // 4 ```

Sign in to see the full answer — free to start on the web.

This is one card from the KnowCard library. The full way to learn it — spaced-repetition review, progress tracking, and AI explanations — lives in the KnowCard app, free to start on the web. iOS & Android are coming soon.

Get started — it’s free

Already have an account? Sign in →

More in Python 2 vs Python 3

Why is Python 2's input() considered dangerous, and what replaced it?
In Python 3, what does the built-in input() return when the user types 2**5?
What does this print in Python 3? ``` print 5 / 2 ```
In Python 3, what does this evaluate to? ``` 5 / 2 ```
In Python 3, what does -7 // 2 evaluate to?
In Python 3, what does this print? ``` r = map(str, [1, 2, 3]) print(r) ```