USD ($)
$
United States Dollar
Euro Member Countries
£
United Kingdom Pound
$
Canada Dollar
$
Australia Dollar
India Rupee
Nigeria Naira
FCFA
Central African CFA franc
GH₵
Ghanaian cedi
R
South Africa Rand
KES
Kenyan Shilling
Pakistan Rupee
د.إ
United Arab Emirates dirham
Philippines Peso

Hello, World!

Lesson 1/3 | Study Time: 5 Min
Hello, World!
Python is a very simple language, and has a very straightforward syntax. It encourages programmers to program without boilerplate (prepared) code. The simplest directive in Python is the "print" directive - it simply prints out a line (and also includes a newline, unlike in C).

There are two major Python versions, Python 2 and Python 3. Python 2 and 3 are quite different. This tutorial uses Python 3, because it more semantically correct and supports newer features.

For example, one difference between Python 2 and 3 is the print statement. In Python 2, the "print" statement is not a function, and therefore it is invoked without parentheses. However, in Python 3, it is a function, and must be invoked with parentheses.
Linda Anderson

Linda Anderson

Product Designer
4.63
Faithful User
Senior Vendor
Golden Classes
Best Seller
Fantastic Support

Attachments

  • Introduction video

GDPR

We value your gift — and your privacy.

We use cookies and similar technologies to improve your experience, analyze site usage, personalize content, and assist in our marketing efforts. You can manage your preferences at any time. Your privacy matters to us.