Don't do it

a year ago by The Picard Maneuver to c/memes

LostXOR 136 points a year ago
path: 0 16506230, hotness: undefined, score: 136, children: 22
nutcase2690 33 points a year ago

You forgot the most important part!

print(chr(3486)) # ඞ
path: 0 16506230 16508923, hotness: undefined, score: 33, children: 5
Landless2029 5 points a year ago

Why is that thing scary?

path: 0 16506230 16508923 16515873, hotness: undefined, score: 5, children: 3
_g_be 23 points a year ago

It could be an impostor

path: 0 16506230 16508923 16515873 16517463, hotness: undefined, score: 23, children: 0
Kolanaki 7 points a year ago

It could be a monster.

path: 0 16506230 16508923 16515873 16517312, hotness: undefined, score: 7, children: 0
JackbyDev 7 points a year ago

It looks like the characters from the game Among Us.

path: 0 16506230 16508923 16515873 16519922, hotness: undefined, score: 7, children: 0
sloppysol 1 point a year ago

Looks like telugu

path: 0 16506230 16508923 16522209, hotness: undefined, score: 1, children: 0
devfuuu 20 points a year ago

What kind of dumb language is this?

path: 0 16506230 16508137, hotness: undefined, score: 20, children: 2
LostXOR 44 points a year ago
path: 0 16506230 16508137 16508152, hotness: undefined, score: 44, children: 0
takeda 23 points a year ago

Python, but this is actually defined and documented behavior.

Edit: to illustrate what I mean:

not() # True

this actually is not () (the lack of space makes it look like a function), () is a tuple, in python an empty collection returns False, this is to make checks simpler. You can type:

if my_list:
  do something

instead of

if len(my_list) > 0:
  do something

not negates it so you get True

str(not()) # 'True'

converts resulting bool type into a string representation

min(str(not())) # 'T'

This might feel odd, but that's also documented. min() not only allows to compare two numbers like it is in most languages, but you can also provide a sequence of values and it will return the smallest one.

String is a sequence of letters.

Letters are comparable according to ASCII (so you can do sorting). In ASCII table capital letters are first, so the 'T' is the smallest value.

ord(min(str(not()))) # 84

this just converts 'T' to Unicode value which is 84

range(ord(min(str(not())))) # range(0, 84)

This creates a sequence of numbers from 0 to 83

sum(range(ord(min(str(not()))))) # 3486

This works like min() except adds up all the numbers in the sequence together, so in our case 0+1+2+3+...+83 = 3486

chr(sum(range(ord(min(str(not())))))) # 'ඞ'

reverse of ord(), converts Unicode value to a character.

path: 0 16506230 16508137 16522175, hotness: undefined, score: 23, children: 0
Ziglin 10 points a year ago

Why does not without a parameter return True? I'm starting to like the fact that I haven't touched python in a while.

path: 0 16506230 16508901, hotness: undefined, score: 10, children: 12
LostXOR 23 points a year ago
path: 0 16506230 16508901 16508979, hotness: undefined, score: 23, children: 11
takeda 6 points a year ago

Are you sure?

I can't test it now, but to me it looks like () is an empty tuple. Python behavior is that for logic operations empty set equals to false. Then we apply not to get True. Not having space between not operator and parentheses makes it look like it is a function.

path: 0 16506230 16508901 16508979 16522250, hotness: undefined, score: 6, children: 1
LostXOR 1 point a year ago
path: 0 16506230 16508901 16508979 16522250 16524649, hotness: undefined, score: 1, children: 0
brb 5 points a year ago

God I love python

path: 0 16506230 16508901 16508979 16512554, hotness: undefined, score: 5, children: 0
Ziglin 5 points a year ago

Why is literally nothing equivalent to None? Is it because None is the default value of an optional parameter? (If so why oh why is it optional)

path: 0 16506230 16508901 16508979 16515250, hotness: undefined, score: 5, children: 5
spooky2092 5 points a year ago

Because nothing isn't something, and something is true. It's base Boolean logic where everything is either true or false. Null/nothing is false.

It's a weird way to think about conditionals, but it makes sense when you use them in real examples. In my case, I use them like this when I need to make sure that a variable has a value. So I can do something like

If(variable){do things with the variable}else{do stuff when the variable doesn't exist}

path: 0 16506230 16508901 16508979 16515250 16519774, hotness: undefined, score: 5, children: 4
humanspiral 2 points a year ago

in J, many other languages, not null is null.

path: 0 16506230 16508901 16508979 16512688, hotness: undefined, score: 2, children: 1
pupbiru 3 points a year ago
a  = null
if not a:
   …

if not a were null then an if that evaluates that would evaluate it as falsy… also if a would evaluate as falsy :/ that’s far weirder behaviour

path: 0 16506230 16508901 16508979 16512688 16517271, hotness: undefined, score: 3, children: 0
ImplyingImplications 77 points a year ago

It prints Unicode character #3486: ඞ

path: 0 16505403, hotness: undefined, score: 77, children: 5
Jimbabwe 35 points a year ago

𓂺

path: 0 16505403 16505880, hotness: undefined, score: 35, children: 0
protist 28 points a year ago

path: 0 16505403 16507508, hotness: undefined, score: 28, children: 0
valkyrieangela 10 points a year ago

GETOUTOFMYHEAD GETOUTOFMYHEAD GETOUTOFMYHEAD

path: 0 16505403 16511413, hotness: undefined, score: 10, children: 0
OpenStars 8 points a year ago

giggity

path: 0 16505403 16505622, hotness: undefined, score: 8, children: 0
tedd_deireadh 5 points a year ago

nice

path: 0 16505403 16506054, hotness: undefined, score: 5, children: 0
eta 25 points a year ago

thanks I won't do that 'cause it's sus

path: 0 16505510, hotness: undefined, score: 25, children: 0
quantenzitrone 22 points a year ago
>>> print(print(chr(sum(range(ord(min(str(not()))))))))
ඞ
None
path: 0 16506804, hotness: undefined, score: 22, children: 1
grrgyle 7 points a year ago

amoug

path: 0 16506804 16512715, hotness: undefined, score: 7, children: 0
Zangoose 7 points a year ago

Is it bad that I already knew what this would print the moment I read the meme?

path: 0 16515351, hotness: undefined, score: 7, children: 0
ramenshaman 3 points a year ago

You can't tell me what to do

path: 0 16511959, hotness: undefined, score: 3, children: 0
memes
memes

@lemmy.world

login for more options
22396
9994
13185

Community rules

1. Be civil

No trolling, bigotry or other insulting / annoying behaviour

2. No politics

This is non-politics community. For political memes please go to !politicalmemes@lemmy.world

3. No recent reposts

Check for reposts when posting a meme, you can only repost after 1 month

4. No bots

No bots without the express approval of the mods or the admins

5. No Spam/Ads/AI Slop

No advertisements or spam. This is an instance rule and the only way to live. We also consider AI slop to be spam in this community and is subject to removal.

A collection of some classic Lemmy memes for your enjoyment

Sister communities

go to feed...