fr en

"Hello World" en Python

Posted on Mon 06 January 2020 in Développement

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!