Given N numbers: the first number in the input is N, after that N integers are given. Count the number of zeros among the given | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Given N numbers: the first number in the input is N, after that N integers are given. Count the number of zeros among the given

answer is: N=int(input()) x=[] zero=0 for i in range(1,N+1): y=int(input()) x.append(y) if y==0: zero +=1 print(zero)

15th Oct 2020, 10:33 AM
Khicheengui Elbeg
Khicheengui Elbeg - avatar
1 Answer
+ 7
Khicheengui Elbeg , what is your problem? you have not posted a question.
15th Oct 2020, 10:44 AM
Lothar
Lothar - avatar