First Python Program

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,

Here’s the output,

In Python 2, you need to type the following.

The parentheses are not necessary,

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.

Python 3 Installation
Studyopedia Editorial Staff
Studyopedia Editorial Staff

We work to create free tutorials for all.

No Comments

Post A Comment