Advertisement
Guest User

Untitled

a guest
Nov 14th, 2019
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.14 KB | None | 0 0
  1. #!/usr/bin/python3
  2.  
  3. import sys
  4.  
  5. n = 0
  6. for line in sys.stdin:
  7. l = line.split()
  8. if l[0].isdigit():
  9. if len(l)>1:
  10. n = n + 1
  11. print (n)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement