This is the solution of the problem: X=int(input()) inn=0 out=0 for i in range(0,X): N=int(input()) if(10<=N<=20): inn+=1 else: out+=1 print("%i in"%inn) print("%i out"%out) Comment please to make me cheer up.
No comments