-isfinite() is a python function which is predefined in math library. and use for check that the number is finite or not.
-If number is finite then it will return True
-If number is not finite or NaN then it will return the false.
print("Enter any number")
Enter any number
-In this program, firstly we import the 'math' library by using import math
then we take input of number then check it is finite or not, and print True or False as per the value.