Python So erstellen Sie eine Benutzereingabefunktion

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])
           
Gorgeous Gnat