Paradox

Report a typo

Suppose we have defined the variable inf as follows: inf = float('inf'). Match each of the expressions below with its outcome.

Match the items from left and right columns
print(1 / inf)
print(1 / 0)
print(0 * inf)
ZeroDivisionError
0.0
nan
___

Create a free account to access the full topic