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

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

[-] SpaceNoodle@lemmy.world 9 points 4 months ago

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

[-] tiefling@lemmy.blahaj.zone 6 points 4 months ago

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

[-] pkill@programming.dev 2 points 4 months ago

(\r (frequencies "strawberry"))

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

Programmer Humor

19821 readers
535 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 2 years ago
MODERATORS