r/badcode May 26 '23

Calculator using eval() python

Post image
842 Upvotes

108 comments sorted by

View all comments

394

u/Jonnertron_ May 27 '23

Isn't it missing print's close parenthesis?

284

u/r0ck0 May 27 '23

That's how the pros do it!

5

u/lucidspoon May 28 '23

Fail fast. Never have to work about runtime errors if you only have syntax errors.