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