Count


#1

i cant understand what to write in else statement and what to return

def count(sequence,item):
number =[]
for i in sequence:
if i == item:
number+=1
else:
number
return count


#2

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.