print function input in python 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')
answer = input("What is your name? ")
print(f"Your name is {answer}")
import sys
data = sys.stdin.readline()
sys.stdout.write('Dive in')