Articles → Python → Isinf Function In Python
import math print("Is number infinite: ", math.isinf(float("inf"))) print("Is number infinite: ", math.isinf(1))
Query/Feedback