Mi first post: I'm trying to learn some python
From CLI I run: python file.py
import sys lines = 0 words = 0 chars = 0 for line in sys.stdin: lines = lines +1 words = words +1 chars = chars + 1 print lines, words, chars
I write some text from stdin/keyboard, but then ... how can I leave the stdin, so that the file can process the text I wrote? So far I have to quit the terminal ...
I hope I managed to describe the problem. Thanks for any help