Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python how to make a user input function

lis = ["log('", "')"]
x = input()
# This allows you to type: log('ANY') and it will detect whats inside of the quotes and it will print into the console "ANY"
for i in lis:
	if i in x:
		if i == lis[0]:
			y = x.split("'")
			print(y[1])
           
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #user #input #function
ADD COMMENT
Topic
Name
6+9 =