Advertisement
Uwwan

#21484

Mar 20th, 2022
27
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.22 KB | None | 0 0
  1. #21484
  2.  
  3. f = open('file4.txt')
  4. n = int(f.readline())
  5. # c = 0
  6. print(len([int(x) for x in f.readlines() if int(x) == 42]))
  7.  
  8. '''for i in range(n):
  9.    x = int(f.readline())
  10.    if x ==42:
  11.        c+=1
  12. print(c)
  13. '''
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement