Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

I nstalling Python basic syntax, interactive shell, editing, saving, and running a script, Study notes of Computer Science

This document provides a comprehensive guide to getting started with Python, covering essential topics such as installing Python, understanding its basic syntax, and using the interactive shell. Key areas include editing, saving, and running Python scripts, as well as working with variables and assignments. The document also explains immutable variables, numerical types, arithmetic operators, and expressions. Additionally, it covers the use of comments in programs and offers guidance on interpreting and resolving common error messages.

Typology: Study notes

2023/2024

Available from 06/19/2024

skr-suman
skr-suman 🇮🇳

1 / 191

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Department of
Computer Science and Engineering
PYTHON PROGRAMMING
School of Computing
Vel Tech Rangarajan Dr. Sagunthala R&D Institute of
Science and Technology
Course Code
Course Name
:1152CS119
: Python Programming
Course Faculty : V.Usha
Category
Slot Number
Unit
: Program Elective
: S4,S8
: I
2/11/2021 1
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d
pf3e
pf3f
pf40
pf41
pf42
pf43
pf44
pf45
pf46
pf47
pf48
pf49
pf4a
pf4b
pf4c
pf4d
pf4e
pf4f
pf50
pf51
pf52
pf53
pf54
pf55
pf56
pf57
pf58
pf59
pf5a
pf5b
pf5c
pf5d
pf5e
pf5f
pf60
pf61
pf62
pf63
pf64

Partial preview of the text

Download I nstalling Python basic syntax, interactive shell, editing, saving, and running a script and more Study notes Computer Science in PDF only on Docsity!

Department of

Computer Science and Engineering

PYTHON PROGRAMMING

School of Computing Vel Tech Rangarajan Dr. Sagunthala R&D Institute of Science and Technology Course Code Course Name : 1152 CS 119 : Python Programming Course Faculty : V.Usha Category Slot Number Unit : Program Elective : S 4 ,S 8 : I

Course Introduction

Correlation of COs with Program Outcomes

and Program Specific Outcomes

Cos Engi neeri ng Kno wled ge Probl em Anal ysis Design / Develo pment of solution s Condu ct investi gation s of compl ex proble ms Mod ern Tool usage The Engi neer Socie ty Enviro nment & Sustai nabilit y Eth ics Individ ual & Team Work Co mm unic atio n Projec t Mana gemen t & Financ e Life Long Learni ng Math emati cal Conc epts Softwa re Develo pment Transfe rring Skills M M M L L L L L M L L M M M M M L L L M M M M M M L L L L L M M M

Correlation of COs with Student Outcomes ABET EAC COs SO1 SO2 SO3 SO4 SO5 SO6 SO L L L L M M L M H L M M L M M M L L L M M M

Python is an interpreted, object-oriented programming language

similar to PERL, that has gained popularity because of its

clear syntax and readability.

1991

Why python

PYTHON DEVELOPER SALARY

The average salary of entry-level Python developer

salary in India is ₹427,293.

 The average salary of a mid-level Python developer

salary in India is ₹909,818.

The average salary of an experienced Python

developer salary in India is ₹1,150,000.

FUTURE SCOPE

PYTHON USED FOR?

KNOW THE DIFFERENCE

• UNIT I - INTRODUCTION 9

Installing Python; basic syntax, interactive shell, editing, saving, and running a script-variables, assignments; immutable variables; numerical types; arithmetic operators and expressions; comments in the program; understanding error messages;

  • UNIT II - CONDITIONAL STATEMENT & STRING HANDLING 9 Conditions, Boolean logic, logical operators; ranges; Control statements: if- else, loops (for, while); short-circuit (lazy) evaluation - Manipulating files and directories, os and sys modules; text files: reading/writing text and numbers from/to a file; creating and reading a formatted file (csv or tab-separated). String manipulations: subscript operator, indexing, slicing a string; strings and number system: converting strings to numbers and vice versa. Binary, octal, hexadecimal numbers. Course Content
UNIT III - OBJECT ORIENTED PROGRAMMING WITH PYTHON 9

Classes and OOP: classes, objects, attributes and methods; defining classes; design with classes, data modeling; persistent storage of objects - OOP, continued: inheritance, polymorphism, operator overloading; abstract classes; exception handling, try block

  • UNIT IV-IMAGE PROCESSINGWITH PYTHON 9 Design with functions: hiding redundancy, complexity; arguments and return values; formal vs actual arguments, named arguments. Program structure and design. Recursive functions-Simple Graphics and Image Processing: “turtle” module; simple 2 d drawing - colors, shapes; digital images, image file formats, image processing Simple image manipulations with 'image' module (convert to b/w, greyscale, blur, etc). Course Content

Text Books

  • “Learning Python: Powerful
Object-Oriented
Programming: 5th Edition
Shroff; Fifth edition (24 July
  • “Python Essential Reference”.
Addison-Wesley Professional;
4 edition (July 19, 2009) by
David M.Baezly
  • “Python Cookbook”
O’Reilly Media; 3 edition
(June 1, 2013) by David M.
Baezly.
  • • • • • • • • • • • • Tools for Python IDE: Integrated Development Environment