#Functions #built-in functions: print and input #we learned math and ranodm libraries we used a few built-in functions from #these libraries #function main #Write a program that reads 10 ints and finds the number of even numbers. def main(): i=0 count_even=0 for i in range(10): num=int(input("enter num ")) if(num%2==0): count_even+=1 print(count_even,"evens") main() #Every function definition will start with keyword def #followed by function_name and then list of parameters in #(list_of_formal_parameters) #def function_name(list_of_formal_parameters) #main doesn't have ANY parameters #to call the function you write function_name(list_of_actual_parameters) #main doesn't have any parameters then we called the function by writing main()