Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

input in python

x = input()
# This will take you to shell where you input a value for x

print(x)
# Print's the value you typed

y = input('Enter a number: ')
# Will print 'Enter a number: ' to the shell and then wait for you
# to enter a value (Does not have to be a number)

# Copy the code and try it
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #input #python
ADD COMMENT
Topic
Name
3+7 =