Python Programming Notes | B.Sc. (Information Technology) Semester 3 | Mumbai University | munotes
Official Notes munotes.in
Python Programming
B.SC. (INFORMATION TECHNOLOGY) · SEMESTER 3
Strictly as per the University of Mumbai NEP syllabus in force for B.Sc. (Information Technology)
For B.Sc. (Information Technology) students of the University of Mumbai and all its affiliated colleges
Open the book ↓munotes.in Second Year
Contents
Module I Basic Elements of Python Programming
- What Python Is, and the Features That Made It Popular 1
- Installing Python and Running Your First Program 6
- How a Python Program Is Executed: Source, Bytecode and the PVM 10
- The Python Interpreter: The Prompt, Script Mode and the Command Line 14
- Comments 18
- IDLE: The Shell, The Editor and The Debugger 22
- The Data Types Python Gives You 26
- Numbers: int, float, complex and bool 30
- The Dictionary as a Data Type 34
- Sets and the frozenset 37
- Mapping: What a Mapping Type Is 41
- Tokens, Keywords, Identifiers and Literals 44
- Statements, Lines and Indentation 48
- Variables and What a Name Really Holds 52
- Reading What the User Types: The input() Function 56
- Output Statements: The print() Function 60
- Command Line Arguments and sys.argv 63
- Arithmetic Operators 66
- Relational Operators and Chained Comparison 70
- Logical Operators and Short-Circuit Evaluation 74
- Bitwise Operators 78
- Assignment Operators 82
- Membership and Identity Operators 86
- Precedence and Associativity of Operators 90
- Control Statements: The Three Kinds Python Has 94
- The if Statement 98
- The if...else Statement and the Conditional Expression 101
- The if...elif...else Statement 105
- The while Loop 109
- The for Loop and the range() Function 113
- The Infinite Loop and The Nested Loop 117
- The else Suite on a Loop 122
- break, continue and pass 125
- The assert Statement 129
- The return Statement 132
- What an Array Is, and Why a List Is Not One 135
- Creating an Array with the array Module 139
- Indexing and Slicing an Array 143
- Basic Array Operations 147
- Processing an Array 151
- NumPy and the ndarray 156
- Mathematical Operations on an Array 160
- Aliasing an Array Against Copying One 165
- Slicing and Indexing in NumPy Arrays 170
- Basic Slicing of a NumPy Array 174
- Advanced Indexing 178
- Dimensions and Attributes of an Array 183
- Function Definition and Call 188
- Returning a Result from a Function 192
- Returning Multiple Values from a Function 196
- The Built-in Functions 200
- The Difference Between a Function and a Method 204
- Pass by Object Reference 208
- Parameters and Arguments 213
- Default and Keyword Arguments 216
- *args and **kwargs: Any Number of Arguments 220
- Local and Global Scope 224
- Recursive Functions 229
- Anonymous Functions: The lambda 234
- Modules in Python 239
- Writing Your Own Module and the __name__ == '__main__' Idiom 244
- Creating Strings 249
- The Functions and Methods of a String 253
- Working with Strings: Indexing, Slicing, Concatenation and Membership 258
- Formatting Strings: The f-string 263
- Formatting Strings with format() and the Percent Operator 267
- Finding the Number of Characters and Words 271
- Inserting a Substring into a String 276
- Module 1: The Practical Set 280
Module II List
- Exploring the List: What Makes It Different 289
- Creating a List 293
- List Functions and Methods 298
- List Operations 303
- List Slices 308
- Nested Lists and the Matrix 312
- Tuples 317
- The Functions That Work on a Tuple 321
- Creating a Dictionary 325
- The Operators That Work on a Dictionary 330
- Dictionary Methods 334
- Using a for Loop with a Dictionary 339
- Operations on Dictionaries 343
- Sorting a Dictionary by Value 348
- Opening and Closing a File 352
- Working with Text Files 356
- Reading the Last n Lines of a File 361
- Working with Binary Files 365
- The with Statement 370
- Pickle in Python 374
- seek() and tell() 380
- Random Access to a Binary File 385
- Zipping and Unzipping Files 390
- Working with Directories 395
- Regular Expressions: An Introduction 401
- Sequence Characters in a Regular Expression 407
- Special Characters in a Regular Expression 412
- Using a Regular Expression on a File 418
- Retrieving Information from an HTML File 423
- Time in Python: The Epoch and struct_time 428
- The date Object 433
- The Date and Time Now 438
- Combining a Date and a Time 442
- Formatting a Date and a Time 446
- Finding and Comparing Dates 451
- Sorting Dates 457
- Knowing the Time a Program Takes 462
- Working with the Calendar Module 467
- Module 2: The Practical Set 472
- Sitting the Paper: Thirty Marks in One Hour 479
The chapters
Every chapter of this book comes with the B.Sc. (Information Technology) Semester 3 notes.
The cover and the contents are free to look through. Buy the notes once to read every chapter of every subject in this semester.
Notes: ₹499 Already bought it? Sign in
Free either way: question papers, the syllabus, and the cover and contents of every book.
The rest of this subject
These notes are cut from the University's printed syllabus. Open the syllabus itself, or the past papers, for the same subject.