Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

How to get user input in Python

Use the input() method

Example
#code
name = input("Name Please: ")
print(f'Hello {name}, what can I do for you?')

#console
Name Please:
>>> Steve
Hello Steve, what can I do for you?
Source by codinggear.blog #
 
PREVIOUS NEXT
Tagged: #How #user #input #Python
ADD COMMENT
Topic
Name
1+4 =