Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Presentation

concepts of python

Rating
-
Sold
-
Pages
41
Uploaded on
25-04-2024
Written in
2023/2024

explanations about the concepts in python programming

Institution
Course

Content preview

SCSA1211- Python Programming




SCHOOL OF COMPUTING

DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING




UNIT-I Python Programming – SCSA1211




1

,SCSA1211- Python Programming




INTRODUCTION
History of Python- Introduction to the IDLE interpreter (shell) -Expressions – Data Types -
Built-in function - Conditional statements - Iterative statements- Input/output -Compound Data
Types - Nested compound statements




1. Program

A program performs a task in the computer. But, in order to be executed,
a program must be written in the machine language of the processor of a
computer. Unfortunately, it is extremely difficult for humans to read or write a
machine language program. This is because a machine language is entirely
made up of sequences of bits. However, high level languages are close to
natural languages like English and only use familiar mathematical characters,
operators and expressions. Hence, people prefer to write programs in high level
languages like C, C++, Java, or Python. A high level program is translated into
machine language by translators like compiler or interpreter.

a. About Python

Python is a high level programming language that is translated by the
python interpreter. As is known,an interpreter works by translating line-by-
line and executing. It was developed by Guido-van-rossum in 1990, at the
National Research Institute for Mathematics and Computer Science in
Netherlands. Python doesn’t refer to the snake but was named after the famous
British comedy troupe, Monty Python’s Flying Circus.

The following are some of the features of Python:


2

,SCSA1211- Python Programming



 Python is an Open Source: It is freely downloadable, from the link http://
python.org/”
 Python is portable: It runs on different operating systems / platforms3
 Python has automatic memory management
 Python is flexible with both procedural oriented and object oriented
programming
 Python is easy to learn, read and maintain

It is very flexible with the console program, Graphical User Interface (GUI)
applications, Web related programs etc.

POINTS TO REMEMBERWHILE WRITING A PYTHON PROGRAM

 Case sensitive : Example - In case of print statement use only
lower case and not upper case, (See the snippet below)




Fig1. Print Statement

 Punctuation is not required at end of the statement
 In case ofstring use single or double quotes i.e. ‘ ’ or “ ”
 Must use proper indentation:The screen shotsgiven below show, how
the value of “i” behaves with indentation and without indentation.



3

, SCSA1211- Python Programming




Fig 2 indentation

 Special characters like (,),# etc.are used

 () ->Used in opening and closing parameters of functions

 #-> The Pound sign is used to comment a line



1.2 TWO MODES OF PYTHON PROGRAM

Python Program can be executed in two different modes:
 Interactive mode programming
 Script mode programming
4

Written for

Institution
Course

Document information

Uploaded on
April 25, 2024
Number of pages
41
Written in
2023/2024
Type
PRESENTATION
Person
Unknown

Subjects

$9.49
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller
Seller avatar
rpjpraveen77

Get to know the seller

Seller avatar
rpjpraveen77 Achyuta academy
Follow You need to be logged in order to follow users or courses
Sold
-
Member since
2 year
Number of followers
0
Documents
6
Last sold
-

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions