python: singular

Add a reply

Posted by flying sheep 169 days ago:
i am getting angry on the “s” of “bottles”, which has to be missing when there is only one bottle.
has anybody an idea how to get it done with few bytes lost?

it costs me 24 bytes!
Posted by eyepopslikeamosquito 163 days ago:
" bottle"+"s of beer"[expr:]

where expr is an expression evaluating to zero or one.

Add a reply