We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 517313f commit 81574e1Copy full SHA for 81574e1
examples/full-screen/calculator.py
@@ -49,9 +49,7 @@ def main():
49
def accept(buff):
50
# Evaluate "calculator" expression.
51
try:
52
- output = (
53
- f"\n\nIn: {input_field.text}\nOut: {eval(input_field.text)}"
54
- ) # Don't do 'eval' in real code!
+ output = f"\n\nIn: {input_field.text}\nOut: {eval(input_field.text)}" # Don't do 'eval' in real code!
55
except BaseException as e:
56
output = f"\n\n{e}"
57
new_text = output_field.text + output
0 commit comments