2.8k
u/veselin465 Oct 10 '24 edited Oct 10 '24
It seems like the following is happening (correct me if wrong)
not() -> True
str -> "True"
min - > "T"
ord -> 84 (which is "T" ascii)
range -> range(0,84) which are the numbers from from 0 to 84 83
sum -> sum of those numbers which is 3486
chr -> ඞ, because that's the symbol 3486
614
u/Ignisami Oct 10 '24
Yup. Empty tuples are falsy, which makes them the perfect aesthetic match with the bonus of confusing some people that a not() built-in function exists in Python.
134
u/patio-garden Oct 10 '24
Oooh yeah yeah, that totally confused me.
145
u/Ignisami Oct 10 '24
Don't blame you. For a language notorious about whitespace, it's perfectly happy to treat
not()asnot ()21
u/ArminiusGermanicus Oct 10 '24
Why not, though?
-xis also perfectly valid, you don't have to write- x0
12
→ More replies (3)5
287
96
u/ArminiusGermanicus Oct 10 '24
If anybody else is confused: not() is not a function call, but the application of the not operator to the empty tuple (), which itself evaluates to False in a boolean context.
19
→ More replies (2)18
17
u/Suitable_Werewolf_61 Oct 10 '24
range -> range(0,84) which are the numbers from from 0 to 84
to 83.
2
u/veselin465 Oct 10 '24
Good catch, I edited my comment
yeah, range in python is usually used for for loops, so it excludes the last element
→ More replies (2)16
u/VladVV Oct 10 '24
What the hell are the chances that the Unicode codepoint for Sinhalese amogus just so happens to be a triangular number
1.7k
u/FibroBitch97 Oct 10 '24
Took me a while, but here’s what it output:
𓀥 𓁆 𓀕
𓁆 𓀟 𓀣 𓁀
279
u/Batcave765 Oct 10 '24
Wherever I go, i always see it ...
→ More replies (2)258
u/FibroBitch97 Oct 10 '24
I know, right?
:.|:;101
u/DubioserKerl Oct 10 '24
I am completely at a Loss as to what you are implying here
→ More replies (5)13
18
14
u/b__lumenkraft Oct 10 '24
✧ʕ̢̣̣̣̣̩̩̩̩·͡˔·ོɁ̡̣̣̣̣̩̩̩̩✧ woooooohooooooo
24
u/PeriodicSentenceBot Oct 10 '24
Congratulations! Your comment can be spelled using the elements of the periodic table:
W O O O O O O Ho O O O O O OI am a bot that detects if your comment can be spelled using the elements of the periodic table. Please DM u/M1n3c4rt if I made a mistake.
9
13
u/ShustOne Oct 10 '24
print(loss)
→ More replies (1)17
u/PeriodicSentenceBot Oct 10 '24
Congratulations! Your comment can be spelled using the elements of the periodic table:
Pr In Tl Os SI am a bot that detects if your comment can be spelled using the elements of the periodic table. Please DM u/M1n3c4rt if I made a mistake.
→ More replies (2)→ More replies (2)6
u/PiBombbb Oct 10 '24
Would be funny if someone managed to print that in a similar fashion to the post
2
u/chaosTechnician Oct 10 '24
Sadly, a quick search for "loss meme code golf" didn't yield.
→ More replies (1)
289
Oct 10 '24
You can't post that and not say what it does in the comments. Shame on you!
285
u/Mirikah Oct 10 '24
ඞ
→ More replies (1)145
155
u/dithmal Oct 10 '24 edited Oct 10 '24
As a Sri Lankan I'm obligated to let you know the letter (ඞ) you get is Sinhalese (a language here). Thank you. You may resume your scrolling.
Edit: added the letter
Edit 2: it doesn't mean anything but sounds a bit like "Ng" as in AmoNGus. See comment below.
19
u/ltimate_axolotl Oct 10 '24
What's the equivalent in english?
29
u/Ok-Visit6553 Oct 10 '24 edited Oct 10 '24
The velar nasal, or “ng” sounds in the
“singing”.(look at the comment below)→ More replies (1)57
→ More replies (1)3
6
→ More replies (2)3
53
u/Phoenix_Studios Oct 10 '24
same thing but in javascript (there has to be a better way to do this right?)console.log(String.fromCharCode(Array.from(Array((String(!0).toUpperCase()).charCodeAt(0)),(a,b)=>b).reduce((a,b)=>a+b,0)))
45
u/jimmyhoke Oct 10 '24
There is a better way to do it
console.log("ඞ")But what you did is way more fun.
6
u/CarbonaraFreak Oct 10 '24
You have some default values that you don‘t need to provide. My attempt is
String.fromCharCode(Array((!0+‘‘).toUpperCase().charCodeAt()).fill(0).reduce((a,b,c)=>a+c))3
→ More replies (1)5
u/ThiccStorms Oct 10 '24
I hate javascript
4
u/The_MAZZTer Oct 10 '24
JavaScript is fine as long as you're not creating it directly and are producing it by transpiling TypeScript instead.
(I hate JavaScript too.)
48
52
u/skybird23333 Oct 10 '24
how this simply aligns and how this was discovered in the first place is fascinating
18
u/HorseLeaf Oct 10 '24
You can work your way backwards. Start at the result you want and find something that equals that and keep going.
12
13
u/fishfellatio Oct 10 '24
>>> print(chr(sum(range(ord(min(str(not())))))))
ඞ
>>> chr(sum(range(ord(min(str(not()))))))
'ඞ'
>>> sum(range(ord(min(str(not())))))
3486
>>> range(ord(min(str(not()))))
range(0, 84)
>>> ord(min(str(not())))
84
>>> min(str(not()))
'T'
>>> str(not())
'True'
>>> not()
True
>>>23
u/ovr9000storks Oct 10 '24
Who the fuck figures this stuff out
5
u/tubameister Oct 10 '24
here's exactly how: https://twitter.com/chordbug/status/1835511250031136871
3
u/jimmycarr1 Oct 10 '24
It's just the code version of finding a calculation that ends in 5318008 on the calculator.
9
u/the_remarkable_fox Oct 10 '24
It’s extra funny seeing this letter used as amogus cos it’s a letter of the Sinhala language which is my native language
8
u/not-cyber Oct 10 '24 edited Apr 24 '26
This post was bulk deleted with Redact which also removes your info from data brokers. Works on Reddit, Twitter, Discord, Instagram and all major social media platforms.
summer chop cagey quicksand bells fuzzy special deliver frame cable
6
5
u/general---nuisance Oct 10 '24
C#
using System;
using System.Text;
using System.Linq;
public class Program
{
public static void Main()
{
Console.WriteLine((char)Enumerable.Range(0,Encoding.ASCII.GetBytes(true.ToString()).ToList().OrderBy(x=>x).First()).ToList().Sum());
}
}→ More replies (2)
3
3
u/thies1310 Oct 10 '24
Amogus
4
u/PeriodicSentenceBot Oct 10 '24
Congratulations! Your comment can be spelled using the elements of the periodic table:
Am Og U SI am a bot that detects if your comment can be spelled using the elements of the periodic table. Please DM u/M1n3c4rt if I made a mistake.
→ More replies (1)
3
3
u/3Domse3 Oct 10 '24
Made it a little longer:
print(chr(sum(range(ord(min(str(not(bool(int(float(abs(complex()))))))))))))3
u/Benur21 Oct 10 '24
H He Li Be B C N O F Ne Na Mg Al Si P S Cl Ar K Ca Sc Ti V Cr Mn Fe Co Ni Cu Zn Ga Ge As Se Br Kr Rb Sr Y Zr Nb Mo Tc Ru Rh Pd Ag Cd In Sn Sb Te I Xe Cs Ba La Ce Pr Nd Pm Sm Eu Gd Tb Dy Ho Er Tm Yb Lu Hf Ta W Re Os Ir Pt Au Hg Tl Pb Bi Po At Rn Fr Ra Ac Th Pa U Np Pu Am Cm Bk Cf Es Fm Md No Lr Rf Db Sg Bh Hs Mt Ds Rg Cn Nh Fl Mc Lv Ts Og
→ More replies (2)
3
3
2
u/Eline_Moose Oct 10 '24
>>> print(chr(sum(range(ord(min(str(not())))))))
ඞ
>>> chr(sum(range(ord(min(str(not()))))))
'ඞ'
>>> sum(range(ord(min(str(not())))))
3486
>>> range(ord(min(str(not()))))
range(0, 84)
>>> ord(min(str(not())))
84
>>> min(str(not()))
'T'
>>> str(not())
'True'
>>> not()
True
>>>2
u/qscbjop Oct 10 '24 edited Oct 10 '24
I just want to know how someone noticed that the codepoint of this character is a triangular number.
2
2
u/Puzzled_Way_8570 Oct 10 '24
ඞ
This is a Sinhalese old character that was replaced by 'ං'
Sounds like - "nga" when you speak "trying uh?"
E.g.: Springer -> Old Sinhalese - 'ස්ප්රිඞ'
2
4
2
u/DEvilAnimeGuy Oct 10 '24
what is this!!!
6
u/PeriodicSentenceBot Oct 10 '24
Congratulations! Your comment can be spelled using the elements of the periodic table:
W H At I S Th I SI am a bot that detects if your comment can be spelled using the elements of the periodic table. Please DM u/M1n3c4rt if I made a mistake.
→ More replies (1)
2
u/Lumpy_Benefit666 Oct 10 '24
Its better than spending 10 minutes clicking print when youre in year 3 because everyone elses work is printing and youre getting impatient.
I printed off 800 pages in colour. It was just my name in a colourful font lmao
2
Oct 10 '24 edited Oct 10 '24
not () returns True (not () returns True)
str(True) returns 'True' (Converts bool to str)
min('True') returns 'T' (Converts first chracter to str)
ord('T') returns 84 (ASCII code for 'T')
range(84) return 0, 1, 2, ... 83 (generates sequence of 84 numbers starting from 0)
sum(0, 1, 2, 3... 83) returns 3486 (sum of all numbers from 0-83. Can be found using the formula (n*(n-1))/2, where n is the number of terms; 84)
chr(3486) returns the Unicode codepoint (dec) of 3486, which returns...:
ඞ
4
u/Haruka-sama Oct 10 '24
notisn't a function it's actuallynot ()as in empty tuple. Which truthiness is based on whether it's empty or not.→ More replies (1)
1
1
1
1
u/FrancescoGuccini Oct 10 '24
I also made this thing print(Char(sum(0:Int(minimum(String(Symbol(typeof("SUS")))))))) for Julia
1
1
1
Oct 10 '24
I'm not smart enough to make anything of this, not even the replies. Explain like I'm 2?
→ More replies (1)
1
u/Hussarini Oct 10 '24
The only programing i've done was in high school, reading the comments feels like stumblimg into a class of wizards talking about spells
1
1
1
1
u/CaterpillarKlutzy864 Oct 10 '24
b='E͉͎͔͈͔͔͓͔͉͎͙͕͐͒̈̂͐̏̏͒͌̎̓̚͏͍͙̏̒͂̓͗͊̂̉ͯͯ̕͘'.encode();exec(''.join(chr(((h<<6&64|c&63)+22)%133+10)for h,c in zip(b[1::2],b[2::2])))
1
1
1
u/Lijaesdead Oct 10 '24
Ok idk how I got here, i am no programmer nor am i tech savy. Its like i stumbled upon a group of wizards talking in runes to eachother. Ya’ll are cool as fuck though.
1
1
1
1
1
1
1
1
1
1
u/Vipitis Oct 10 '24
That is beyond sick. I need to have this in the python intro class to show that you can chain functions...
1
u/Away_Cause_1729 Oct 10 '24
can someone explain this for me?
→ More replies (2)3
u/Sowhataboutthisthing Oct 10 '24
The code snippet in the image is:
print(chr(sum(range(ord(min(str(not())))))))
Let’s break down what this code does step by step:
1. not(): • This attempts to use the not operator, which isn’t a function. However, since not expects a value, it results in a syntax error. • If corrected (e.g., not(True) or not(False)), it would return False or True. 2. str(...): • Converts the boolean value (True or False) into its string representation (‘True’ or ‘False’). 3. min(...): • Finds the smallest character (lexicographically) in the string ‘True’ or ‘False’. For ‘False’, it would be ‘F’. 4. ord(...): • Converts the character ‘F’ to its ASCII value, which is 70. 5. range(...): • Creates a range object from 0 to 70 (not inclusive). 6. sum(...): • Sums the numbers from 0 to 69 (resulting in 2415). 7. chr(...): • Converts the sum 2415 back into a character. However, this value exceeds the standard ASCII range and results in an extended Unicode character.The humor comes from the absurdity of using such a convoluted way to generate a character, likely resulting in an unexpected or even undefined character output. Additionally, attempting this could cause errors depending on the interpreter’s handling of out-of-range chr values, which is why it’s dubbed a “mistake.”
→ More replies (2)
1
Oct 10 '24
Ruby:
(("" <=> []).to_i..not().to_s.upcase.ord - 69.gcd(420).gcd("2e1f".to_i)).sum.chr Encoding::UTF_81
1
u/FJB444 Oct 10 '24
You changed the print letters to print in black on black. Now you can't read anything.
1
1
1
1
1
1
1
u/Skull_is_dull Oct 10 '24
This is how it was found https://twitter.com/chordbug/status/1835511250031136871
1
1
1
1
1
1
1
u/AgonisingPeach Oct 11 '24
For the PowerShell queens ඞ
Write-host([char]([int]((0..(([int](([String](1 -eq 1))[0])) - 1) | Measure-Object -Sum).Sum)))
1
1
1
1
u/revengerGopnikGaming Jan 13 '25
>>> print(chr(sum(range(ord(min(str(not())))))))
ඞ
>>> chr(sum(range(ord(min(str(not()))))))
'ඞ'
>>> sum(range(ord(min(str(not())))))
3486
>>> range(ord(min(str(not()))))
range(0, 84)
>>> ord(min(str(not())))
84
>>> min(str(not()))
'T'
>>> str(not())
'True'
>>> not()
True
>>>





13.7k
u/NonStandardUser Oct 10 '24 •
Fascinating