froztbyte

joined 1 year ago
[–] froztbyte@awful.systems 12 points 3 weeks ago* (last edited 3 weeks ago)

the for x in y statement takes iterable y and assigns a value from it to x per iteration (loop), so what happens is that it's reassigning chosen_char each loop to the next item from the sentence

(sum([x for x in sentence if x == chosen_char]) would be a quick one-liner, presuming one has downcased the sentence and other input/safety checks)

(e: this post was in response to your 2-liner comment in the code)

[–] froztbyte@awful.systems 8 points 3 weeks ago (1 children)

istg I don't think I'll ever truly grok US corporate stans

[–] froztbyte@awful.systems 9 points 3 weeks ago (5 children)

excited to once again be discussing the novel philosophical depths in questions such as “what if ultron were right tho”

[–] froztbyte@awful.systems 17 points 3 weeks ago
[–] froztbyte@awful.systems 13 points 3 weeks ago (10 children)

this is an extremely strange and problematic take

[–] froztbyte@awful.systems 9 points 3 weeks ago (9 children)

yes, the massive waste of resources involved is definitely “funny”, that’s definitely the bit of this awful shit to post a take about

[–] froztbyte@awful.systems 11 points 3 weeks ago (3 children)

this isn’t autoplag fan club, and honestly if “guard rails” are the reason you think this shit is problematic it’s definitely not the place for you to be posting

[–] froztbyte@awful.systems 11 points 3 weeks ago* (last edited 3 weeks ago)

it is tickling me that this won’t even be GA but “selected companies”

best to keep ~~scamming the easy marks~~ “work with clients aligned to the technology you wish to deliver”, I guess

[–] froztbyte@awful.systems 8 points 3 weeks ago

it’s okay, I know how to defuse this

“it’s hearthstone, isn’t it?”

[–] froztbyte@awful.systems 5 points 3 weeks ago

never really been massively into playing it myself but anecdata: I recall hearing of some busted-and-banned shit people drooled over in the early 00s, so I’m inclined to guess that there’s a continued structural issue that leads to this consistently happening

[–] froztbyte@awful.systems 13 points 3 weeks ago

behind the bastards has also recently done two episodes on the clown, if you want to learn more things you'll hate

[–] froztbyte@awful.systems 10 points 3 weeks ago

don’t forget stock control on the [flag] cupboard

view more: ‹ prev next ›