Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python3
- import sys
- def count_char():
- if not input().startswith('a'):
- return 0
- c = 0
- for s in sys.stdin:
- size = len(s.rstrip('\n'))
- if size == 0:
- return c
- c += size
- return c
- print(count_char())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement