PYTHONPROGRAMMING
PYTHONPROGRAMMING
PYTHONPROGRAMMING
IIB.TECH-ISEMESTER
COURSEOBJECTIVES:
Thecourseshouldenablethestudentsto:
1. UnderstandthebasicsandfunctionofPythonProgrammingLanguage.
2. UnderstandthestringoperationandsequencesusedinPythonProgrammingLanguages.
3. UnderstandthedatastructuresusedinPythonProgrammingLanguages.
4. KnowtheclassesandobjectsinPythonProgrammingLanguage.
5. UsethereusabilityconceptsinPythonProgrammingLanguage.
COURSEOUTCOMES:
Attheendofthecourse,Studentswillbeable to:
1. ApplycontrolstructuresandfunctionsinProgram
2. AnalyzevariousStringhandlingfunctionsanddatastructures
3. Applythefilesandobjectorientationconcepts
4. SolvetheproblemsbyusingInheritanceandpolymorphism
5. Illustrateprogramsonvariouspythonlibrariessuchasnumpy,pandasandmatplotlib
SYLLABUS
UNIT-I CLASSES:12
Introduction to Python Programming:FeaturesofPythonLanguage,DataTypes,ArithmeticOperators,
Comparison (Relational) Operators, Assignment Operators, Logical Operators, Bitwise Operators, Shift
Operators, Ternary operator, Membership Operators, Identity Operators, Expressions and order of
evaluations. Illustrative examples on all the above operators, Expressions, Control Statements, and
Standard I/O Operations: input, print, ‘sep’,’end’.
FunctionsandModules:
DeclarationandDefinitionFunctionCalling,DefiningFunctions,RecursiveFunctions,Modules,Packages in
Python, Doc Strings, Built-in Functions.
UNIT–II CLASSES:13
StringsandRegularExpressions:
StringOperations,Built-inStringMethodsandFunctions,ComparingStrings,functionsinRegularExpression.
Sequence:List,Tuples,Dictionaries.
UNIT-III CLASSES:12
FileHandling:Introduction,FilePath,TypesofFiles,OpeningandClosingFiles,ReadingandWriting Files,
File Positions, Renaming and Deleting Files, Directory Methods.
ImplementationofclassesandobjectsinPython:
Classes and Objects, Methods and Self Argument, The initMethod, Class Variables and Object Variables,
The delMethod, Public and Private Data Members, Private Methods,Built-in Functions to Check, Get, Set
and Delete Class Attributes, Garbage Collection (Destroying Objects).
B.Tech-ComputerScienceandEngineering–DataScience-MLR20 Page68
MLRInstituteofTechnology
UNIT–IV CLASSES:11
ImplementationofInheritanceinPython:
InheritingClassesinPython,TypesofInheritance,Composition/Containership,AbstractClassesand Interfaces,
Meta class,Implementing Operator Overloading, Overriding Methods
ExceptionHandlinginPython:
Introduction, Exception hierarchy, Handling Exception, Multiple except Blocks and Multiple
Exceptions,Finally Block.
UNIT-V CLASSES:10
Python NumPy: Features of Numpy, NumPyndarray, Data Types, Functions of NumPy Array, Numpy
Array Indexing, Mathematical Functions on Arrays in NumPy.
Python Pandas: Pandas Features, Install Pandas, Dataset in Pandas, Series, DataFrames, Panel,
Manipulating the Datasets, Describing a Dataset, group by Function, Filtering, Missing Values in
Pandas, Concatenating Data Frames
Matplotlib:Formattingthestyleofplot,plottingwithkeywordstrings,plottingwithcategoricalvariables,
controlling line properties.
TEXTBOOKS
1. CorePythonProgramming,byR.NageswaraRao
2. ReemaThareja,PythonProgrammingusingProblemSolvingApproach,FirstEdition,Oxford Higher
Eduction.
REFERENCEBOOKS
1. KennethA.Lambert,FundamentalsofPython
2. CharlesDierach,IntroductiontoComputerScienceusingPython
SUGGESTEDLINKS
1. https://www.programiz.com/python-programming
2. https://www.javatpoint.com/python-tutorial
3. https://www.geeksforgeeks.org/python-programming-language/
B.Tech-ComputerScienceandEngineering–DataScience-MLR20 Page69