0% found this document useful (0 votes)
4 views

1-python-intro-1_6755310937e45_

Python is an interpreted, high-level, general-purpose programming language created by Guido van Rossum in 1991, known for its readability and ease of use. It supports object-oriented programming, interactive mode, and has a broad standard library, making it suitable for various applications. Many prominent companies like Google, NASA, and IBM utilize Python for its scalability and integration capabilities.

Uploaded by

sesadiperera16
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views

1-python-intro-1_6755310937e45_

Python is an interpreted, high-level, general-purpose programming language created by Guido van Rossum in 1991, known for its readability and ease of use. It supports object-oriented programming, interactive mode, and has a broad standard library, making it suitable for various applications. Many prominent companies like Google, NASA, and IBM utilize Python for its scalability and integration capabilities.

Uploaded by

sesadiperera16
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 15

Programming Techniques

Using Python
6.1 Introduction to Python Programming
What is Python
§ Python is an interpreted, high-level, general-purpose
programming language.
§ Created by Guido van Rossum and released in 1991.
§ Python is Object-Oriented
§ Python is a Beginner's Language
§ Open-Source Programming Language
Visit for More Info..
Python is a programming language that
lets you work quickly and integrate
systems more effectively.

https://www.python.org
Benefits of Python
Features of Python
§ Python is Object-Oriented
§ It supports Interactive Mode
§ Broad Standard Library
§ It supports GUI Programming
§ Portable
§ Scalable and Extendable
§ Its easy to use and easy to learn
Who Uses Python

§ Google § Yahoo
§ YouTube § Quora
§ NASA § Reddit
§ Dropbox § Red Hat
§ IBM § Git Hub
§ Instagram § Cisco
§ Mozilla
Python Basics
§ Python programs and modules are written as
text files with traditionally a .py extension.

§ Variable in Python need no declaration.


c=1
§ Objects always have a type.
Python Syntax Compared to
Other Programming Languages
§ Python was designed for readability, and has some similarities to the
English language with influence from mathematics.

§ Python uses new lines to complete a command, as opposed to other


programming languages which often use semicolons or parentheses.
§ Python relies on indentation, using whitespace, to define scope; such
as the scope of loops, functions and classes. Other programming
languages often use curly-brackets for this purpose.

§ Before start coding, make sure that you have python installed on a
Linux or Mac, then on linux open the command line or on Mac open
the Terminal and type:
Python IDLE
IDLE is an Integrated Development
and Learning Environment for Python.
How to Write a Python Program

…………………………….

The python code has to be saved with a filename and .py extension.
For Example, Let’s save this file as test.py
How to Execute a Program
test.py file can be executed at command line by invoking the interpreter on
your application.

C: > python test.py

…………………………….
Run Python Script using an
IDLE
You can run the script by going
……………………………. "Run --> Run Module" or simply
by hitting F5

…………………………….
Any
Questions ?
Thank You!
Yasiri Ranasinghe
BSc(Hons) Computing – Coventry University, UK
[email protected]

You might also like