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

001 - 05-05-2020 XI-Python Basics - Introduction

Python, developed by Guido van Rossum in 1991, is an interpreter-based scripting language used for web applications, database connections, big data handling, and rapid software development. It can be installed from python.org, with the latest version being 3.8.2, and can also be used online via Google Colab. Python is favored for its simplicity, multi-platform support, and ease of learning, making it accessible for both new and experienced programmers.

Uploaded by

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

001 - 05-05-2020 XI-Python Basics - Introduction

Python, developed by Guido van Rossum in 1991, is an interpreter-based scripting language used for web applications, database connections, big data handling, and rapid software development. It can be installed from python.org, with the latest version being 3.8.2, and can also be used online via Google Colab. Python is favored for its simplicity, multi-platform support, and ease of learning, making it accessible for both new and experienced programmers.

Uploaded by

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

Python Basics

Computer Science
Introduction to Python
Python - The Programming Language 2

Python was developed by Guido van Rossum and released in 1991.

Python is an Interpreter based scripting language, which can be used:

● to create web based applications.


● to connect to database systems and to read and modify files.
● to handle big data and perform complex mathematics.
● for rapid software development.
Python installation 3

To try the programs, you need to download Python from python.org only.
Presently, the latest version is 3.8.2.
However, you can download any version 3.6 onwards.

During installation, opt for Custom installation, and set the installation
path for python as C:\Python38 and let it install in default location.
Online Python 4

Every gmail account including your school official account allows you work
on Python programs with in it through the URL -
colab.research.google.com

In colab, you can type/edit the Python program online, run the Python
program, add notes along the code, share it with the teacher and peer
to work in collaboration. All this will happen as a part of your Google
cloud/drive and you don't have to bother about saving your program, but
don't forget to name each colab notebook with a meaningful name for
your later comeback and work on it. Each colab notebook will allow you to
create multiple Python codes.
Python - The Programming Langauge 5

Python stands out as the present generation Programming Language


because of the following reasons:

● It works on multiple platforms (Windows, Mac, Linux, Raspberry Pi,


etc).
● It has a simple syntax that allows developers to write robust programs
easily and efficiently.
● It can be used to write procedural as well as object-oriented codes.
Python - The Programming Language 6

Python codes can be executed in:

● Interactive mode (Shell) using the Python IDLE (Integrated


DeveLopment Environment) to execute single line Python commands
(Recommended version 3.6 and above and can be downloaded only
from Python official website. https://www.python.org)
● Scripting mode (Editor) to write program and execute its statements
line by line and get the result in the Python shell.
● Using Jupyter Notebook - for editing and executing ongoing series of
codes in a single file. colab.research.google.com as a part of your
own gmail account can also be used to create online Python
notebooks, which will allow you to have Basic Formatted Text, Codes
and Output in a single place.
What makes a language? 7

Every language (machine or natural, it doesn't matter) consists of the


following elements:

● An Alphabet : a set of symbols used to build words of a certain


language (e.g., the Latin alphabet for English, the Cyrillic alphabet for
Russian, Kanji for Japanese, Devanāgarī (देवनागरी) for Hindi, Marathi,
Sanskrit, Nepali and so on)
● A Lexis : (i.e. a dictionary) a set of words the language offers its users
(e.g., the word "computer" comes from the English language
dictionary, while "cmoptrue" doesn't; the word "chat" is present both
in English and French dictionaries, but their meanings are different)
What makes a language? (contd…) 8

● A Syntax : a set of rules (formal or informal, written or felt intuitively)


used to determine if a certain group of words forms a valid sentence
(e.g., "I am a python" is a grammatically correct phrase, while "I a
python am" isn't)
● Semantics : a set of rules determining if a certain phrase makes
sense (e.g., "I ate a doughnut" makes sense, but "A doughnut ate me"
doesn't)
● Computer Languages which act as a bridge between natural human
language and computer understandable instructions are called high-
level programming languages.
● They are similar to natural languages since they use symbols, words
and conventions readable to humans.
● Set of instructions (a program) written in a high-level
What makes Python special? 9

● It's easy to learn - the time needed to learn Python is shorter than
for many other languages; this means that it's possible to start solving
problems using programs faster;
● It's easy to use for writing new software - it's often possible to
write code faster when using Python;
● It's easy to understand - it's also often easier to understand
someone else's code faster if it is written in Python;
● It's easy to obtain, install and deploy - Python is free, open and
multiplatform; not all languages can boast that.
Quiz 10

Python in an example of :

a. A high level programming language


b. A natural language
c. A machine Language

m ing
gr am
l pro
s : l eve
A n igh
h
a. A uage
g
lan
Quiz 11

What is a source code?

a. The code, which is typed by programmer and executed by


computers
b. Another name for a source file
c. A program written in a high level programming language
ming
gr am
el pro
h lev
a h ig
n in
t e
w rit
n s : gr am
A
A pro e
c. u ag
g
lan
Quiz 12

What is IDLE?

a. It is an acronym that stands for Integrated Development and


Learning Environment for Python
b. It is a Python version
c. It is an acronym for Integrated Development and Learning Extension

Ans:
a. It is an acronym that stands for Integrated
development and learning environment for Python
13

Thank You
Computer Science Department
Delhi Public School, R.K.Puram

You might also like