hard20 pts · first answer countshash-mappythonfloating-point
NaN membership in a Python set
In Python, x = float('nan'). What do x in {x} and float('nan') in {float('nan')} return?
Discussion 0
Join free to post in the discussion.
Related questions
- Python default list surpriseBackend Developer
- Built-in memoisation in PythonBackend Developer
- Average cost of a hash map lookupBackend Developer
- Worst case for a hash map lookupBackend Developer
- Removing duplicates with a SetBackend Developer
- Number keys in a plain objectBackend Developer
- Iteration order of a MapBackend Developer
- When to choose Map over a plain objectBackend Developer