how to know if a number is lucky number in python code example
Example 1: python check if number
if type(variable) == int or type(variable) == float:
isNumber = True
Example 2: check if a number is in a list python
5 in [3, 4, 5, 6, 7]
# True
9 in [3, 4, 5, 6, 7]
# False