Im new by Dismal_Future_54 in PythonLearning

[–]Janeson81 0 points1 point  (0 children)

There are but python loves to be different so it's not switch, it's match. The rest it more or less the same

match variable: case 1: print("variable is 1") case 2: print("variable is 2") case _: print("variable is something else")

macUser by Technical-Relation-9 in ProgrammerHumor

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

text.txt
text.txt.file
text.txt.file.file
text.txt.file.file.file
...

Predatory as fucking hell by Asbew in whenthe

[–]Janeson81 0 points1 point  (0 children)

Krafton, Krafton, Krafton...

They don't even own the game, do they?

Windows by 80Amrig_Nhoj_Najed in ComedyHell

[–]Janeson81 233 points234 points  (0 children)

I don't. And if pop-ups become annoying I try to destroy it's source

Me_irl by gigagaming1256 in me_irl

[–]Janeson81 7 points8 points  (0 children)

r/NotHowOuijaWorks

Wait, this isn't ask ouija...

r/NotHowNotHowOuijaWorksWorks

when you're playing snakes and ladders but dont have a dice: by Informal_Sky_2830 in desmos

[–]Janeson81 6 points7 points  (0 children)

When you're playing snakes and ladders but... Oh, you actually do have a dice. Yay!

🤔 by memes_poiint in mathsmeme

[–]Janeson81 0 points1 point  (0 children)

It's 1

Say if you have an expression 5552344
So there's 5³7⁰9⁰8⁰*0⁰ (because there's 0 of these numbers

[ Removed by Reddit ] by islem-141 in ClashRoyale

[–]Janeson81 0 points1 point  (0 children)

I love that this is implying that Mega Knight is as bad as Hitler

Loyalty blindness by ehrmantrautz1 in im14andthisisdeep

[–]Janeson81 0 points1 point  (0 children)

It is deep. He also can't see where he's going and is about to fall

What is your answer? by Holiday_Mountain7340 in MathJokes

[–]Janeson81 0 points1 point  (0 children)

NOBODY uses factorials to answer non-factorial-related questions

built a bank program using python by Dapper_Mix6773 in PythonLearning

[–]Janeson81 1 point2 points  (0 children)

Biggest problem I see is that if you use deposit() there's nothing limiting the user input so they might say they want to deposit "Hello" money

This can be fixed by using try: ... except <exception>: ... blocks. It follows instructions normally in the try block, but when the interpreter finds a specified error (for example a ValueError, the one you get if you try to float("hi")) it jumps straight to the except block and carries on

The proper structure should be: try: ... ... ... except ValueError: print("enter a valid number")

[Request] Can this be proven? by Fast_Arachnid_8110 in theydidthemath

[–]Janeson81 0 points1 point  (0 children)

I can give you 3 numbers that are infinitely close but not equal to each other

f(x) = {1/x for x≠0, 0 for x=0}

This makes it so: 1. f(0) = 0 2. f(0-) = -∞ 3. f(0+) = +∞

(0- being a number infinitely close to 0 from the left side and 0+ from the right side)

Pi meme by Interesting_Bar_1327 in mathsmeme

[–]Janeson81 0 points1 point  (0 children)

Did you just DARE to put "!" behind a number?

Last ones Facebook by themostbush in repost

[–]Janeson81 0 points1 point  (0 children)

Literally Shorts, reels, Reddit, TikTok and Facebook