r/shittyprogramming • • Jun 11 '21

Command line is_even utility

Post image
101 Upvotes

11 comments sorted by

View all comments

Show parent comment

2

u/PityUpvote Jun 11 '21

Ideally you'd have a separate function to handle the input entirely though, then the while clause would be shorter.

And yeah, but everyone does use f-strings, including me. I just thought it was funny to come across the single use case for this operator and still see it ignored.

1

u/NaCl-more Jun 11 '21

Ideally python would implement some sort of do-while loop