Saturday, 1 September 2018

FIRST PROGRAM IN PYTHON


FIRST PROGRAM IN PYTHON
Python is an interpreted programming language, this means that as a developer you write Python (.py) files in a text editor and then put those files into the python interpreter to be executed.

To run python program 
syntax is : python <file_name.py>

The way to run a python file is like this on the command line:
C:\Users\FOLDER>python hello.py
Where "hello.py" is the name of your python file.
Let's write our first Python file, called helloworld.py, which can be done in any text editor.
helloworld.py
print("Hello, World!, welcome to python!")
here print is the output function used to display the message with in the double quotes.
output:- Hello, World!, welcome to python!



No comments:

Post a Comment

Lists

Python  Lists Python Collections (Arrays) There are four collection data types in the Python programming language: List  is a ...