Hello Egg World
00:00
Philipp, you’re right. It turns out there’s an even simpler way to implement "Hello, World!" in Python, which doesn’t even include writing a single line of code because Python comes with "Hello, World!" built in.
00:14
So you can actually run a module that is in Python standard Library and to run a Python module, you type the Python command, whoops, Python, and then you supply the -m option, which stands for module, and then you just specify the name of the module.
00:32
And it’s interesting because you won’t find it in the official documentation, if I recall correctly, but if you look at the source code, there is a funny looking module name, which is called __hello__, or using Python’s lingo.
00:48
The double underscore is often abbreviated to Dunder. So it’s __hello__. And if I hit enter, it will well print the Hello, World!.
00:59
So someone already has implemented "Hello, World!" for us in Python.
Become a Member to join the conversation.
