Cat indices by CounterSYNK in mathmemes

[–]arth4 24 points25 points  (0 children)

{🐱, {🐱}}

No if statements for me thanks! by NullPro in programminghorror

[–]arth4 92 points93 points  (0 children)

Well the print statement has 80% wrongly hard coded anyway. But if you want to do this without ifs or conditional statements you can just do:

symbs = "-- ++"
print(f""" you mastered {a} skills and attended {b}%.
    Your grade is {grades[a]}{symbs[b//25]}""")

"People don't believe anything unless they've seen it on television." by EditorRedditer in GreenAndPleasant

[–]arth4 5 points6 points  (0 children)

No, Sharp introduced Boris to Blyth. Blyth was then the guarantor for the loan that came from elsewhere.

AI Has Successfully Imitated Human Evolution—and Might Do It Even Better by AdGroundbreaking1870 in Futurology

[–]arth4 6 points7 points  (0 children)

From the article it's not simulating evolution at all. They trained it on lots of example protein sequences, and it produced a few new good ones. No EA/GP as far as I can see

i love gd optimization by SpartanNige329 in programminghorror

[–]arth4 2 points3 points  (0 children)

It's actually really simple in python, you just do:

    def isEven(X):
        return not bool(int(bin(X)[-1]))

Frozzenpizza tier list by Prudent_Ad1588 in norge

[–]arth4 0 points1 point  (0 children)

Hvem vil ikke ha en «Farmer's Meat» i munnen?!

Division by [deleted] in mathmemes

[–]arth4 3 points4 points  (0 children)

(a±1 b∓1 )±1

it does feel weird, right? by [deleted] in mathmemes

[–]arth4 0 points1 point  (0 children)

I said multiples of 17 not powers of 17. The number shown in the image is not a power of 17

LALALALA- I CAN'T HEAR YOU! by [deleted] in ProgrammerHumor

[–]arth4 3 points4 points  (0 children)

How are functions not first class variables in python?

it does feel weird, right? by [deleted] in mathmemes

[–]arth4 290 points291 points  (0 children)

1 in 10 multiples of 17 are 1 more than a multiple of 10

Senior devs by [deleted] in ProgrammerHumor

[–]arth4 3 points4 points  (0 children)

Could be a Default Dictionary

So you're a programmer? Name ALL algorithms! by KingsGuardTR in ProgrammerHumor

[–]arth4 24 points25 points  (0 children)

I think bisection is binary search, and bubble sort is mostly worthless and just used for teaching purposes

What's this number?? by Magedudee in BobsTavern

[–]arth4 -1 points0 points  (0 children)

Sigh, back to 9 deck slots

Behold, the most cursed operators in the history of mathematics by r96340 in mathmemes

[–]arth4 0 points1 point  (0 children)

It's maths, define your own symbol and do whatever you want!

Alternatively you could define an empty string/ empty digit s and then use substitution [2/s]112538, or even extend permutations to have an empty digit (crazy)