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

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

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

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

[-] tiefling 6 points 2 months ago

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

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

(\r (frequencies "strawberry"))

this post was submitted on 22 Aug 2024
844 points (100.0% liked)

Programmer Humor

19488 readers
536 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