Write a Python function to check if count of divisors is even or odd
Topic: Write a Python function to check if count of divisors is even or odd
Solution
def NumOfDivisor(n): if n < 1: return root_n = n**0.5 if root_n**2 == n: print("Odd") else: print("Even")
List all Python Programs