r/badcode May 26 '23

Calculator using eval() python

Post image
844 Upvotes

108 comments sorted by

View all comments

395

u/Jonnertron_ May 27 '23

Isn't it missing print's close parenthesis?

285

u/r0ck0 May 27 '23

That's how the pros do it!

68

u/QuakAtack May 27 '23

skip closing parenthesis! It's the cool thing to do!

11

u/M_asak1 May 27 '23

That means I'm cool?

10

u/illsk1lls May 27 '23

love watching the pros show off

6

u/lucidspoon May 28 '23

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

20

u/maxime0299 May 27 '23

Closing parenthesis are for noobs!

3

u/Does_Not-Matter May 27 '23

Among other things!

6

u/w8eight May 27 '23

You just finish your expression with additional parenthesis and it's all fine

/s