free site statistics

What is Python - Python Programming Tutorial - Part 01

Published 6 years ago by LankaTricks
What is Python - Python Programming Tutorial - Part 01

Python Programming Tutorial

Under the Programming Part of Our Site You Can learn about many programming language such as C++ , Java , PHP , Java Script , Python ,C # etc. So, Under that Today we start to learn about python programming.This is the First Lesson of Python Programming tutorial

What is Python - Python Programming Tutorial

What is programming Language

Computer is a electronic device. So Computer can’t understand our language and our thinking as it is. Therefore we have to tell computer to instruction the language which computer can understand. The only language computer can understand is 0 and 1 that means Computer can understand voltage state of 0V and 5V therefore we have to tell it in these 0 and 1 language.

Programming language is the way of giving instruction to the computer by computer Programmers. In here Computer programmers not directly deal with the 0 and 1 language. But Same stage of programming Programmers code convert into  0 and 1 that is called Compiling code.
So, There many computer programming languages are available. in that Today begin to discuss Python programming language.

Python programming

Python is a general purpose interpreted, interactive, object-oriented, and high-level programming language and also Python was Programming language Developed by Van Guido Rossum in 1985- 1990. There are Programming Language such as Perl, Python.So There are source code is can be get under the GNU General Public License. So ,This Programming language is vary Popular among Computer Security Programmers because this programming language easy to use and there are many defined libraries are available.

So Now we are going to learn about How to install python in your computer and how to write and run basic program which programmed by Python.

How to Download And Install Python Programming Environment

In this tutorial we are not going to teach how to Download and Install python because It is easy task for anyone. So,In the following we provide you to a Web Link to Study  how to Download and Install python. By using that link you can get better idea that how to do it.

Python Download and install Learn Link 

Write First Python Program

As a tradition when we are going to learn programming language we write firstly “Hello World” Program. That mean we try to print same world like “Hello World” in the Programming console. In Python that prints as follows.

What is Python - Python Programming Tutorial

So, To write this program first You Open your Python IDLE. After opening that you can find same mark like “>>> ” in that python IDLE.Now you can write your code in here.

$ python
Python 2.4.3 (#1, Nov 11 2010, 13:34:43)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-48)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>

To Print Hello world in screen You should write following code and press Enter Button.

in Python 2.X Versions -:    >>> print “Hello World!”

in Python 3.X Versions -:    >>> print (“Hello World!”)

 

$ python
Python 2.4.3 (#1, Nov 11 2010, 13:34:43)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-48)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> print "Hello World!"

In Here, print is the print function used to print something in python IDLE ( print(“United State”) )

 

Identifiers Used In Python

– A identifier is a name used to identify a variable, function, class, module, or other object.

– An identifier starts with a letter A to Z or a to z, or an underscore (_) followed by zero or more letters, underscores and digits (0 to 9).
– Python does not allow punctuation characters such as @, $, and % within identifiers. Python is a case sensitive programming language.

Here are naming conventions for Python identifiers:

– Starting an identifier with a single leading underscore indicates that the identifier is private.

– Class names start with an uppercase letter. All other identifiers start with a lowercase letter.

– If the identifier also ends with two trailing underscores, the identifier is a language-defined special name.

– Starting an identifier with two leading underscores indicates a strongly private identifier.

 

So,This is the introduction of Programming and Python Programming. language a In Next lesson we learn about python Basic Programming and after move the advance lessons of Python Programming.

 

 


– The contents we publish on this website regarding the professional and educational courses are extracted from various sources, such as newspaper advertisements, circulars, and websites. The right to this information belongs to the first owner of the information. If any alteration happens to this information, we don’t take the responsibility arising from such alteration. Instead, we do inform you as soon as possible regarding the updated information related to professional and educational courses. Also, we allow access you to gain essential knowledge related to competitive exams.

Related Posts

Communication and Media Studies Paper 2014 Advanced Level

Communication and Media Studies Paper 2014 Advanced Level

Published 5 years ago by LankaTricks

Communication and Media Studies Paper 2014 Advanced Level Considering the Science Subject Stream of Advanced Level Examination in Sri Lanka, Communication and Media Studies is the one of Major subject which should follow by the Students. “Communication and Media Studies is a study of how we communicate differently to various audiences/users and communities. It understands…

A/L Pass PapersA/L TutorialsAL Communication and Media StudiesE Thaksalawa
SLAS Exam Guide - Paripalana Sewa - Lesson 04 Part i

SLAS Exam Guide - Paripalana Sewa - Lesson 04 Part i

Published 6 years ago by LankaTricks

SLAS Exam Guide tutorial published on Dinamina Newspaper and Author of this lesson series is Anusha Gukula Pernando. and This is the Lesson 4 Part i SLAS (Sri Lanka Administrative Service) Exam tutorials Which were published on this Dinamini Sri Lankan news paper and there are thousands of people enter in to Sri Lanka Administrative service…

SLAS ExamTutorials
Sober Island - A nature reserve in the Indian Ocean

Sober Island - A nature reserve in the Indian Ocean

Published 8 months ago by LankaTricks

Sober Island is located near the Trincomalee harbor in Sri Lanka. The environment of this island is attractive. It consists of the ruins of Dutch, French, and British buildings, World War II gun positions, and underground ammunition storage complexes. These ruins provide historical value to this island. This island is also called the Island of Sun.

Travel Destinations
Paripalana Sewa - SLAS Exam Guide - Lesson 15

Paripalana Sewa - SLAS Exam Guide - Lesson 15

Published 6 years ago by LankaTricks

SLAS Exam Guide tutorial published on Dinamina Newspaper and Author of this lesson series is Anusha Gukula Pernando. and This is the Lesson 15 SLAS (Sri Lanka Administrative Service) Exam tutorials Which were published on this Dinamini Sri Lankan news paper and there are thousands of people enter in to Sri Lanka Administrative service by referring…

SLAS ExamTutorials
Advanced Level Chemistry - 2013 Exam Paper

Advanced Level Chemistry - 2013 Exam Paper

Published 5 years ago by LankaTricks

  Advanced Level Chemistry – 2013 Exam Paper Advanced Level Chemistry is o one of main subject student can follow under the science subject stream. In This Post, Lankatricks Website provides  you Advanced Level Chemistry – 2013 Exam Paper to study and get knowledge about what the structure and question asking pattern. Following you can…

A/L Pass PapersA/L TutorialsE Thaksalawa
ICT - 2015 Advanced Level Paper

ICT - 2015 Advanced Level Paper

Published 5 years ago by LankaTricks

ICT – 2015 Advanced Level Paper Considering the All Subject Stream of Advanced Level Examination in Sri Lanka, Information and Communication Technology is the one of Major subject which can follow by the Students and also This is available for study with any subject stream. The Meaning of ICT as follows ICT is a Stands…

A/L Pass PapersA/L TutorialsE ThaksalawaICT