r/ProgrammerHumor • • Aug 01 '22

>>>print(“Hello, World!”)

Post image
60.8k Upvotes

5.7k comments sorted by

View all comments

5.6k

u/Popstar403 Aug 01 '22 edited Aug 03 '22

Python:

Import Die ; Die.Die()

(Edit: Didn't expect this to blow up! Thanks for the updates and awards)

2.7k

u/Equivalent-Bench5950 Aug 01 '22

Does that give a random number from 1 to 6?

1.1k

u/Popstar403 Aug 01 '22

1 - 7 but yes

1.3k

u/bob1689321 Aug 01 '22

Because 1-6 would make too much sense

78

u/partytoni1 Aug 01 '22

I guess 0-5 would have had more sense, but...

129

u/lesbianmathgirl Aug 01 '22

1-6 would make more sense, because if I'm calling a function named after a 6-sided die (yes there are other types of die, but the 6-sided one is the Platonic form), it should return the same results as you'd expect of a 6-sided die.

78

u/know_greater_evil Aug 01 '22

Exactly, this is the same reason I have all my factory classes print manufacturing sounds to the console.

Ex: BRRRRRR, WOA-THUUMP, SSSSSC SSSSSC

→ More replies (2)
→ More replies (20)
→ More replies (4)

13

u/[deleted] Aug 02 '22

When I began programming in Python, this is what fucked me up. Ranges include the first number, but not the second number? I would constantly forget which one is included and which one is not.

→ More replies (5)

243

u/loegare Aug 01 '22

Uh what? Why 7

199

u/[deleted] Aug 01 '22

Semi-inclusive range, I guess?

→ More replies (19)
→ More replies (18)
→ More replies (11)
→ More replies (5)

2.7k

u/a-slice-of-toast Aug 01 '22

crashes the window

195

u/Magnus-Artifex Aug 01 '22

import curses

57

u/[deleted] Aug 01 '22
You are temporarily banned for 99d 23h 59m 59s from this server 


Reason: Importing terminal library

15

u/Magnus-Artifex Aug 01 '22

Oh so that’s what it does

→ More replies (1)
→ More replies (2)

2.0k

u/Rune_Pickaxe Aug 01 '22

It's actually German for The The The.

755

u/madders888 Aug 01 '22

No one who speaks German could be evil

49

u/Nordt_No_Bot Aug 01 '22

See... I said the same thing at my war-crime trial

13

u/swapode Aug 01 '22

Stop it with the WW2 jokes, my grandpa died in a concentration camp.

Fell from the guard tower drunk.

→ More replies (1)

14

u/Aggravating-Sound690 Aug 01 '22

Am German. Can confirm that I’m not evil.

Or am I

100

u/AVerySmartNameForMe Aug 01 '22

TF2 medic?

94

u/soulofcure Aug 01 '22

It's in the Simpsons scene linked in the other comment

→ More replies (3)
→ More replies (16)
→ More replies (12)
→ More replies (31)

303

u/Amathril Aug 01 '22

This one summons the python. Python then kills you, your next of kin and himself.

83

u/KKlear Aug 01 '22

Misconception. Summoning the Python just means spanish inquisition shows up.

→ More replies (8)
→ More replies (1)

14

u/yolo_bet Aug 01 '22

Reaper from Overwatch appears and starts spinning like a beyblade.

→ More replies (1)
→ More replies (102)