13 Oct First Python Program
In the previous lesson, we learned how to install Python. In this lesson, we will learn how to begin with the Python and how to run first Python program. It’s easy to run a Python program.
As a demo program, we will learn how to print a text. For this, print function is used, which outputs to the console window.
Go to command prompt and type the following, and press enter,
>>> print ("Studyopedia Python 3 Tutorial")
Here’s the output,
In Python 2, you need to type the following.
The parentheses are not necessary,
>>> print "Studyopedia Python 3 Tutorial"
In this lesson we learned how to run our first Python program. We also saw the syntax for Python 3 as well as Python 2 programs. In the upcoming lessons, we will see how to work with other Python 3 concepts.