Skip to content

codeahelloworld/Hello-World-in-Python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Hello World in Python

Install Python

  • Check if Python is already installed or not. Open Terminal and type :
$ python --version

To check if Python is installed in your OS.

Should return an error of command not found if Python is not installed on your OS. To check if Python3 is installed in your OS.

  • The next step is to download Python. Go to the link below and download Python for your respective OS :

https://www.python.org/downloads/

Download Python on your OS

  • Install Python for your OS from the program you just downloaded. You can continue the installation with the default settings:

Install Python on your OS

  • Open the terminal and check if the python is installed:
$ python --version

Should return the version downloaded of Python.

$ pip --version

Should return the version downloaded of Pip.

Checking if Python is installed or not.


Create a Hello-World Program in Python

  • Create a new file called main.py.
  • Add the following code to the file.
print("Hello World!")
  • Open the terminal and change the directory to the location of your file.
  • Run the command $ python main.py.

About

A simple Hello_World application in Python

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages