Python | sympy.is_even() method Last Updated : 09 Feb, 2023 Comments Improve Suggest changes Like Article Like Report In the sympy module, we can test whether a given number n is even or not using sympy.is_even() function. Syntax: sympy.is_even(n) Parameter: n; number to be tested Return: bool value result Code #1: Python3 # Python program to check even number # using sympy.is_even() method # importing sympy module from sympy import * # calling is_evenfunction on different numbers geek1 = simplify(30).is_even geek2 = simplify(13).is_even print(geek1) print(geek2) Output: True False Code #2: Python3 # Python program to check even number # using sympy.is_even() method # importing sympy module from sympy import * # calling is_even function on different numbers geek1 = simplify(2).is_even geek2 = simplify(-45).is_even geek3 = simplify(-40).is_even print(geek1) print(geek2) print(geek3) Output: True False True Comment More infoAdvertise with us Next Article Python | sympy.is_even() method S Shivam_k Follow Improve Article Tags : Python SymPy Practice Tags : python Similar Reads Python | sympy.is_integer method With the help of sympy.is_integer method, we can check whether element is integer or not this method will return the boolean value i.e True or False. Syntax : sympy.is_integer Return : Return True if integer else False. Example #1 : In this example we can see that by using sympy.is_integer method, w 1 min read Python | sympy.is_constant() method With the help of sympy.is_constant() method, we can check if element is constant or not and it will return a boolean value if found constant by using sympy.is_constant() method. Syntax : sympy.is_constant() Return : Return a boolean value if constant is found. Example #1 : In this example we can see 1 min read Python | sympy.is_real method With the help of sympy.is_real method, we can check whether element is real or not this method will return the boolean value i.e True or False. Syntax : sympy.is_real Return : Return True if real else False. Example #1 : In this example we can see that by using sympy.is_real method, we are able to c 1 min read Python | sympy.is_imaginary method With the help of sympy.is_imaginary method, we can check whether element is imaginary or not this method will return the boolean value i.e True or False. Syntax : sympy.is_imaginary Return : Return True if imaginary else False. Example #1 : In this example we can see that by using sympy.is_imaginary 1 min read Python | sympy.is_number method With the help of sympy.is_number method, we can check if element is number or not and it will return a boolean value if number is found by using sympy.is_number method. Syntax : sympy.is_number Return : Return a boolean value if number is found. Example #1 : In this example we can see that by using 1 min read Like