Python basics: Hello World!

Hello world is a classic example of figuring out a way to make sure that you can produce a result with the tool you're using.


Kalle Tolonen
June 8, 2022
Last updated on June 13, 2022

hello.py

Configuration
- Debian 11  
     
Python files can be identified by their file extension, which is .py.

  

Debian comes with Python3 pre-installed so you can get straight to business.

  

sudo apt-get update
sudo apt-get install -y micro
micro hello.py

  

print("Hello world!")

  

That's the simplest way to do a helloworld in Python. To verify the result you should execute your program.   

kallet@confmansys:~$ python3 hello.py 
Hello world!

     
Happy coding!


Comments

No published comments yet.

Add a comment

Your comment may be published.