Python Syntax Looks Like a Function
My first program in Python! I still find this syntax a bit confusing with no { } etc. def main( line0: print("Hello World!"), line1: print("What's your name?"), line2: (x := input("Name plz: ")), line3: print(f"Your name is: {x}") ): pass 12:26:57 gynvael:h aven$ python test.py Hello World! What's your name? Name plz: gynvael Your name is: gynvael 13:08:44 gynvael:h aven$
A beginner presents a first Python program written with unusual pseudo-syntax that wraps each statement in a labeled argument list. The joke is that the code looks confusing and unlike normal Python, yet the terminal output works perfectly, making fun of beginner programming experiments and unconventional syntax. EN: A beginner presents a first Python program written with unusual pseudo-syntax that wraps each statement in a labeled argument list. The joke is that the code looks confusing and unlike normal Python, yet the terminal output works perfectly, making fun of beginner programming experiments and unconventional syntax.
programming code / программный кодterminal window / окно терминалаcomputer screen / экран компьютераPython script / скрипт Pythoncommand prompt / командная строкаtext editor content / содержимое текстового редактораgreen terminal text / зелёный текст терминалаpurple username / фиолетовое имя пользователяinput prompt / приглашение вводаcursor block / блочный курсор
- @rzeczyzabawne / 13585 2023-11-19
- Type
- image
- Size
- 652×800 · 70.5 KiB
- Mood
- absurd, playful
- Language
- en
- Added