Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python evaluate string

# Be *extremely* cautious when using eval(), make sure that the user can't
# execute their own code, otherwise it's a very helpful function.
>>> eval("print("Hello, World!")")
Hello, World!
 
PREVIOUS NEXT
Tagged: #python #evaluate #string
ADD COMMENT
Topic
Name
2+4 =