Escrito por estudiantes que aprobaron Inmediatamente disponible después del pago Leer en línea o como PDF ¿Documento equivocado? Cámbialo gratis 4,6 TrustPilot
logo-home
Document preview thumbnail
Vista previa 4 fuera de 155 páginas
Examen

Python programming notes.docx

Document preview thumbnail
Vista previa 4 fuera de 155 páginas

Exam of 155 pages for the course "C:UsersHomePC at "C:UsersHomePC (Python programming)

Vista previa del contenido

PYTHON PROGRAMMING III YEAR/II SEM

PYTHON PROGRAMMING
LECTURE NOTES



DEPARTMENT OF
COMPUTER SCIENCE AND
ENGINEERING



MALLA REDDY COLLEGE OF ENGINEERING &
TECHNOLOGY WITH CORRECT ANSWERS 2026/2027

,PYTHON PROGRAMMING III YEAR/II SEM
SYLLA US D




MALLA REDDY COLLEGE OF ENGINEERING AND TECHNOLOGY

III Year . Tech CSE -II SEM
D L T/P/D C
3 -/-/- 3
OPEN ELECTIVE III
(R17A0554) PYTHON PROGRAMMING
O JECTIVES:
D



 To read and write simple Python programs.
 To develop Python programs with conditionals and loops.
 To define Python functions and call them.
 To use Python data structures –- lists, tuples, dictionaries.
 To do input/output with files in Python.
UNIT I
INTRODUCTION DATA, EXPRESSIONS, STATEMENTS
Introduction to Python and installation, data types: Int, float, oolean, string, and list; varia les,
D D



expressions, statements, precedence of operators, comments; modules, functions--- function and its
use, flow of execution, parameters and arguments.

UNIT II
CONTROL FLOW, LOOPS
Conditionals: oolean values and operators, conditional (if), alternative (if-else), chained conditional
D



(if-elif-else); Iteration: while, for, reak, continue.
D




UNIT III
FUNCTIONS, ARRAYS
Fruitful functions: return values, parameters, local and glo al scope, function composition,
D



recursion; Strings: string slices, immuta ility, string functions and methods, string module; Python
D



arrays, Access the Elements of an Array, array methods.

UNIT IV
LISTS, TUPLES, DICTIONARIES
Lists: list operations, list slices, list methods, list loop, muta ility, aliasing, cloning lists, list
D



parameters, list comprehension; Tuples: tuple assignment, tuple as return value, tuple comprehension;
Dictionaries: operations and methods, comprehension;

UNIT V
FILES, EXCEPTIONS, MODULES, PACKAGES
Files and exception: text files, reading and writing files, command line arguments, errors and
exceptions, handling exceptions, modules (datetime, time, OS , calendar, math module), Explore
packages.

,PYTHON PROGRAMMING III YEAR/II SEM
OUTCOMES: Upon completion of the course, students will e a le to
D D



 Read, write, execute y hand simple Python programs.
D



 Structure simple Python programs for solving pro lems.
D



 Decompose a Python program into functions.
 Represent compound data using Python lists, tuples, dictionaries.
 Read and write data from/to files in Python Programs


TEXT OOKS
D



1. Allen . Downey, ``Think Python: How to Think Like a Computer Scientist‘‘, 2nd edition,
D



Updated for Python 3, Shroff/O‘Reilly Pu lishers, 2016.
D



2. R. Nageswara Rao, “Core Python Programming”, dreamtech
3. Python Programming: A Modern Approach, Vamsi Kurama, Pearson

REFERENCE OOKS: D



1. Core Python Programming, W.Chun, Pearson.
2. Introduction to Python, Kenneth A. Lam ert, Cengage
D



3. Learning Python, Mark Lutz, Orielly

, PYTHON PROGRAMMING III YEAR/II SEM
INDEX
UNIT TOPIC PAGE NO
INTRODUCTION DATA,
EXPRESSIONS, STATEMENTS 1
Introduction to Python and installation 1
data types: Int 6
float 7
Doolean 8
string 8
List 10
I varia les
D 11
expressions 13
statements 16
precedence of operators 17
comments 18
modules 19
functions----------function and its use 20
flow of execution 21
parameters and arguments 26
CONTROL FLOW, LOOPS 35
Conditionals: oolean values and
D
35
operators,
II conditional (if) 36
alternative (if-else) 37
chained conditional (if-elif-else) 39
Iteration: while, for, reak, continue.
D 41
FUNCTIONS, ARRAYS 55
Fruitful functions: return values 55
parameters 57
local and glo al scope
D 59
function composition 62
III recursion 63
Strings: string slices 64
immuta ility
D 66
string functions and methods 67
string module 72
Python arrays 73
Access the Elements of an Array 75
Array methods 76
LISTS, TUPLES, DICTIONARIES 78

Información del documento

Subido en
7 de julio de 2026
Número de páginas
155
Escrito en
2025/2026
Tipo
Examen
Contiene
Preguntas y respuestas
$14.49

¿Documento equivocado? Cámbialo gratis Dentro de los 14 días posteriores a la compra y antes de descargarlo, puedes elegir otro documento. Puedes gastar el importe de nuevo.
Escrito por estudiantes que aprobaron
Inmediatamente disponible después del pago
Leer en línea o como PDF

Vendido
4
Seguidores
2
Artículos
902
Última venta
1 mes hace


Por qué los estudiantes eligen Stuvia

Creado por compañeros estudiantes, verificado por reseñas

Calidad en la que puedes confiar: escrito por estudiantes que aprobaron y evaluado por otros que han usado estos resúmenes.

¿No estás satisfecho? Elige otro documento

¡No te preocupes! Puedes elegir directamente otro documento que se ajuste mejor a lo que buscas.

Paga como quieras, empieza a estudiar al instante

Sin suscripción, sin compromisos. Paga como estés acostumbrado con tarjeta de crédito y descarga tu documento PDF inmediatamente.

Student with book image

“Comprado, descargado y aprobado. Así de fácil puede ser.”

Alisha Student

Preguntas frecuentes