RosettaCodeData/Task/Runtime-evaluation/Python/runtime-evaluation-2.py

6 lines
49 B
Python

>>> exec('''
x = sum([1,2,3,4])
print(x)
''')
10