this post was submitted on 22 Aug 2024
847 points (96.4% liked)

Programmer Humor

19564 readers
927 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[โ€“] cypherix93@lemmy.world 11 points 2 months ago (6 children)

"strawberry".split('').filter(c => c === 'r').length

[โ€“] SpaceNoodle@lemmy.world 9 points 2 months ago (1 children)

len([c if c == 'r' for c in "strawberry"])

load more comments (4 replies)