Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to use input in python

#The input command will popup/print the text placed inside the brackets.
#After the text you can type anything and press enter.
#Then the stuff written in the ansfer field will be saved as the function value.

x = input("write anything after this: ")
print(x)

#This code will first print the stuff written in input (write anything after this:).
#Then it will store the text as the x value.
#Then it will print it.
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #input #python
ADD COMMENT
Topic
Name
4+4 =