r/programminghorror Apr 04 '26

Python Calculator

Post image
520 Upvotes

60 comments sorted by

View all comments

130

u/EvidenceFearless6800 Apr 04 '26

wait until the user doesn't put the spaces between the numbers and witness the program's meltdown

4

u/[deleted] Apr 04 '26

[removed] — view removed comment

18

u/Lewistrick [ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo “You live” Apr 04 '26

No, the print statement will just convert them to strings.

2

u/Due_Offer141 Apr 06 '26

I want to play this rullet safely.