wtfpython
wtfpython copied to clipboard
What the f*ck Python? 😱
### ▶ Yes, this is possible * ```py class Some_class: def __init__(self): raise Exception("Access to this class is denied") try: if input("Password for Some_class: ") == "password": del __init__ except...
Expected time to finish: [6] weeks. I'll start working on it on [24/04/22].
I think I can translate readme.md from English to Russian.
### ▶ Weird unicode ligatures behaviour Python interpreter interprets unicode ligatures as two or more characters they are made of. If we explicitly declare variables using globals() it doesn't switch....
While reading some issues for Python I stumbled upon this weird `NaN` behaviour. When supplying `NaN` to max or min, it will return `NaN` if it is the first argument:...
### ▶ Calling the function without calling it Make a file test.py Add the following code ```py def print_HelloWorld(): print("Hello World") print_HelloWorld() print("Hello") ``` Make another file called try.py Add...
 I installed the python package and ran the command and this is what I see!
It looks like there isn't a specific guideline on making a PR regarding translations. Can I just fork and make a PR against master?
I noticed the following sentence in your article . > [] = () is a semantically correct statement (unpacking an empty tuple into an empty list) according to the python...