functions python 3 input processing output code example
Example 1: input python 3
answer = input("What is your name? ")
print(f"Your name is {answer}")
Example 2: input stdout python
import sys
data = sys.stdin.readline()
sys.stdout.write('Dive in')