>>> import sys
>>> print("Going via stdout")
Going via stdout
>>> sys.stdout.write("Another way to do it!")
Another way to do it!21
>>> x = input("read value via stdin: ")
read value via stdin: 42
>>> print(x)
42
>>> print("type in value: "); sys.stdin.readline().rstrip()
type in value:
22
'22'
>>>