print(input()) code example
Example 1: input in python
name = input("What is your name?\n")
print("You said your name was " + name)
number = int(input("Please select a random number:\n"))
Example 2: python input
running = True
mi = input('Are you a girl or a boy?')
l = mi
if l == 'boy' or l == 'Boy':
ui = 'boy'
elif l == 'girl' or l == 'Girl':
ui = 'girl'
else:
running = False
print('huh?')
if running == True:
mine = input('How old are you?')
def v(u):
n = int(u)
if n > 3 and n < 11:
print('Good', ui)
else:
print('Great.')
v(mine)
Example 3: input python
text = input("Enter your name: ")
print(text)
Example 4: input stdout python
import sys
data = sys.stdin.readline()
sys.stdout.write('Dive in')