849
you are viewing a single comment's thread
view the rest of the comments
[-] cypherix93@lemmy.world 11 points 1 month ago

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

[-] SpaceNoodle@lemmy.world 9 points 1 month ago

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

[-] tiefling@lemmy.blahaj.zone 6 points 1 month ago

'strawberry'.match(/r/ig).length

[-] pkill@programming.dev 2 points 1 month ago

(\r (frequencies "strawberry"))

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

Programmer Humor

19331 readers
92 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