Question #837

What is the output of the code snippet below?
print(float('-inf') + 2)

Adding 2 to minus infinity will still make minus infinity! (geeksforgeeks.org/python-infinity)


Comment on Disqus:

Question difficulty: ๐Ÿ”ต๐Ÿ”ต๐Ÿ”ต๐Ÿ”ต๐Ÿ”ต