"Hello World" en Python

Comment afficher "Hello World!" en Python

Code source

def helloworld():
    print("Hello World!")

if __name__ == '__main__':
    helloworld()

Résultats

╰─ echo "def helloworld():\n\tprint('Hello World!')\n\nif __name__ == '__main__':\n\thelloworld()" | python
Hello World!

Comments !

blogroll

social