Answers for "how to take a input from user in python"

4

how to get input from user in python

name = input("Enter your name: ")
print(f'Hello {name}')
Posted by: Guest on September-07-2021
-1

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])
Posted by: Guest on November-28-2021

Code answers related to "how to take a input from user in python"

Python Answers by Framework

Browse Popular Code Answers by Language