761
you are viewing a single comment's thread
view the rest of the comments
[-] cypherix93@lemmy.world 10 points 2 years ago

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

[-] SpaceNoodle@lemmy.world 7 points 2 years ago

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

[-] tiefling@lemmy.blahaj.zone 3 points 2 years ago

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

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

(\r (frequencies "strawberry"))

this post was submitted on 22 Aug 2024
761 points (96.3% liked)

Programmer Humor

33186 readers
1372 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 3 years ago
MODERATORS