Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python how to print input

#To print user input, take the input from the user and store it as a variable. For example I named the variable "name" because that is the question the user will answer.
name = input("What is your name?")
#Then enter in a print command to actually print the user input. Change the "name" variable to the variable you named it.
print("Nice to meet you," + name)
#Feel free to copy and paste the code and edit it to your liking. Hope this helped!
Source by websitesetup.org #
 
PREVIOUS NEXT
Tagged: #python #print #input
ADD COMMENT
Topic
Name
6+6 =