Vidyalelo
Python · Q86

Module in Python

Programming · Python · question 86

Q86

What will be the output of the following Python code? >>> -float('inf') + float('inf')

A.
inf
B.
nan
Answer
C.
0
D.
0.0

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board