Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python input

x = input ("Enter a phrase: ") #after slecting variable and input command,
#you have to write that string what you want to show in your terminal as input.
print (x) #to get the answer

#for integer
x = int (input("How many candies: ") #make sure using round figure, ex: 1, 2, 
print (x)
         
#for decimal
x = float (input ("My height: ") #you can also use DOUBLE function instead of FLOAT
print (x)
Source by www.github.com #
 
PREVIOUS NEXT
Tagged: #python #input
ADD COMMENT
Topic
Name
4+9 =