Python Getting Started
In this post, We will learn how to write first program in Python.
To check Python installed on Windows operating system run below command on windows command shell (cmd.exe).
To check Python installed on linux operating system run below command on Linux terminal.
Run python file on command line.
The way to run a python file is like this on the command line
Above program will print Hello World on your terminal.
In this post, We will learn how to write first program in Python.
Installation
Many system will have already Python installed.To check Python installed on Windows operating system run below command on windows command shell (cmd.exe).
To check Python installed on linux operating system run below command on Linux terminal.
Python Quick start
Create a Python file hello_world.py here .py extension indicate that it is a python file.
Let's write first Python program.
Open hello_world.py in text editor and write below program in it.
The way to run a python file is like this on the command line
Comments
Post a Comment