Skip to content

Python Journey

My Coding Blog

Menu
  • Links
Menu

The immortal “Hello World”

Posted on August 23, 2022 by coden00b

To test our setup, we will going to run the very simple print code, and there’s no other contents better than the word “Hello World”

Our very first code of course:

print (‘Hello world’)

Note:

-it will be inside the open and close parenthesis
-can use single or double quote

There are few ways (in Window)
1. run it under the python prompt
C:\Users\pythonoob>python

Python 3.9.1 (tags/v3.9.1:1e5d33e, Dec  7 2020, 17:08:21) [MSC v.1927 64 bit (AMD64)] on win32
Type “help”, “copyright”, “credits” or “license” for more information.

>>> print (‘Hello World’)
Hello World

>>> print (“Hello World”)
Hello World

2.Save (even without extension, but recommended to use .py) and run “python <filename>

D:\>more helloworld.py
print (‘Hello World’)

D:\>python helloworld.py
Hello World
3. Run it in a network environment like Jupyter. Launch it after installing Anaconda Navigator.

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recent Posts

  • Python Project1: Guess Number
  • The Zen of Python
  • Python>>String Interpolation and Formatting
  • Python>>String Methods
  • Python>>String Concatenation

Archives

  • December 2024
  • January 2023
  • August 2022

Tags

.format attributes concatenation count data type find float fstring guess indexing interpolation len lower methods number project python random replace slicing string strings template time upper zen
© 2025 Python Journey | Powered by Minimalist Blog WordPress Theme