micropython/tests/basics/eval1.py

14 lines
152 B
Python
Raw Normal View History

2014-01-15 22:14:03 +00:00
# builtin eval
eval('1 + 2')
eval('1 + 2\n')
eval('1 + 2\n\n#comment\n')
x = 4
eval('x')
eval('lambda x: x + 10')(-5)
y = 6
eval('lambda: y * 2')()