3 ms·
"Discuss" if comments == 0 else (f"{comments} comment" + "s"*(comments > 1))
by the_pwner224 6y ago
"Discuss" if comments == 0 else (f"{comments} comment" + "s"*(comments > 1))
- deleted 6y ago[deleted]
- airstrike 6y agoSure, I can put it all in one line too: "%d comment%s" % (comments, "s" if comments > 1 else "") if comments > 0 else "Discuss"