My code is below:
def count(lst):
even=0
odd=0
for i in lst:
if i%2==0:
even+=1
else:
odd+=1
return even,odd
lst=[11,13,16,17,19,20]
even,odd=count(lst)
print("Even : {} and Odd :{}",format[even,odd])
When I run,i get following error pointing to last line: 'builtin_function_or_method' object is not subscriptable
I am trying my best to follow this tutorial but still i got error