Python Hello World! Program with code example (snippet)

Looking to write your first program in Python? The good thing is that you do not need to have any program installed on your system to get started, you can use online notebooks to get started!

We would be using Google Colab: to write our Hello World! program.

  1. Go to: (you must be logged into your Gmail account)
  2. Click on New Notebook
  3. Now simply type the below code in the box :

    print("Hello, World!");

  4. Now click the Run Botton. It would take a while to run for the first time.
  5. Soon you should see "Hello, World!" printed as the Output!
  6. You can also press Control + Enter to run or re-run the program (code snippet)
Hello World Demo:
Python Hello World Example GIF
Python Hello World Example GIF


  • Yes! This was easy! Thank you for helping me get started with Python Programming.
    ab2k 12 Sep 2020 11:11:33 GMT
  • Further comments disabled!
Try Out Code2care Dev Tools:


Android Java Linux Microsoft Google Python macOS Notepad++ Microsoft Teams CSS PHP SharePoint Html Linux C Programs Bootstrap jQuery Sublime Android Studio Facebook Eclipse WhatsApp News MySQL Json HowTos JavaScript FTP S3


Code2care is an initiative to publish and share varied knowledge in programming and technical areas gathered during day-to-day learnings and development activities.

Students and Software Developers can leverage this portal to find solutions to their various queries without re-inventing the wheel by referring to our easy to understand posts. Technical posts might include Learnings, Tutorials, Trouble-Shooting steps, Video Tutorials, Code Snippets, How Tos, Blogs, Articles, etc.
🎉 We are celebrating the 10th years of Code2care! Thank you for all your support! We hope we made a difference.
We strong support Gender Equality & Diversity.

We stand in solidarity with Ukraine - Make a donation to UNHCR -