#Write a function even_odd that has one parameter - integer number function returns True #if the parameter is even, and False otherwise write a program (main) that randomly #generates 10 ints between -10 and 10 and counts the number of evens and odds in #randomly #generated sequence import random def even_odd(num): #num is formal parameter if(num%2==0): return True else: return False def main(): count_even=0 count_odd=0 for i in range(10): number=random.randint(-10,10) result=even_odd(number) if(result==True): print(number,"is even") count_even+=1 else: print(number,"is odd") count_odd+=1 print(count_even,"evens") print(count_odd, "odds") main()