Hello World!
Raul Tavares
Open to the next wonderful project - Senior Software Engineer / Full Stack / DevOps / Python passionate. Contract or Perm.
?There is this tradition of when starting with a new computer program language, we create a “Hello World!” program.
Which lead to an informal metric of how sweet it is the learning curve of a new computer programming language by how easy it is to create the first “Hello World!”.
Python is definitely a champion on that matter, with the very straightforward one liner:?
However, are you aware that it exists an even easier and shorter way of getting a “Hello World” in Python?
Using the not so widely known “__hello__” module:?
Funny enough, when using the “__hello__” module inside the interpreter, it becomes “more complex”!… Two lines! ??
Of course we could make it an one-liner by putting the two statements in the same line, separated by a semicolon.
However, it wouldn’t be Pythonic!… ??
Open to the next wonderful project - Senior Software Engineer / Full Stack / DevOps / Python passionate. Contract or Perm.
11 个月Anton Sü?, you always enjoyed this small Python peculiarities... ??