munotes®

Introduction to Programming with Python Notes | B.Sc. (Computer Science) Semester 1 | Mumbai University | munotes

Get access to whole semester resourcesSemester Pass

Official Notes munotes.in

Introduction to Programming with Python

B.SC. (COMPUTER SCIENCE) · SEMESTER 1

Strictly as per the University of Mumbai NEP syllabus in force for B.Sc. (Computer Science)

For B.Sc. (Computer Science) students of the University of Mumbai and all its affiliated colleges

Open the book ↓

munotes.in First Year

Contents

Module I Overview and basic elements, control statements, arrays, functions and strings

  1. What Python Is, and the Features That Made It Popular 1
  2. Installing Python and Running Your First Program 7
  3. How a Python Program Is Executed: Source, Bytecode and the PVM 11
  4. The Flavours of Python 15
  5. The Python Interpreter: The Prompt and the Command Line 18
  6. Comments and Docstrings 22
  7. IDLE: Python's Own Editor and Shell 26
  8. The Data Types Python Gives You 30
  9. Dictionaries, Sets and Mappings: A First Look 35
  10. The Basic Elements of a Python Program 39
  11. Variables and How Python Stores a Value 44
  12. Reading Input: The input() Function 48
  13. Printing Output: The print() Function 52
  14. Command Line Arguments 56
  15. Operators, Part One: Arithmetic, Relational and Logical 59
  16. Operators, Part Two: Bitwise, Assignment, Membership and Identity 63
  17. Precedence and Associativity of Operators 68
  18. The if Statement 73
  19. The if...else Statement 77
  20. The if...elif...else Statement 80
  21. The while Loop 84
  22. The for Loop and range() 88
  23. Infinite Loops and Nested Loops 92
  24. The else Suite on a Loop 97
  25. break, continue and pass 100
  26. The assert Statement 104
  27. The return Statement 108
  28. Arrays: Creating Them with the array Module 112
  29. Indexing and Slicing an Array 116
  30. Basic Array Operations and Array Processing 120
  31. Mathematical Operations on an Array with NumPy 125
  32. Aliasing, Viewing and Copying an Array 129
  33. Slicing and Indexing a NumPy Array 134
  34. Advanced Indexing: Integer Arrays and Boolean Masks 138
  35. The Dimensions and Attributes of an Array 143
  36. Defining a Function and Calling It 148
  37. Returning Results, and Returning More Than One 152
  38. The Built-in Functions 156
  39. A Function and a Method: The Difference 160
  40. How Python Passes a Value: Object Reference 164
  41. Parameters and Arguments 168
  42. Recursive Functions 172
  43. Anonymous Functions: lambda 177
  44. Modules in Python 181
  45. Creating Strings 186
  46. The Functions and Methods of a String 190
  47. Working with Strings 194
  48. Formatting Strings 198
  49. Counting Characters and Words in a String 202
  50. Inserting a Substring into a String 206
  51. Module 1 Practicals: The Programs for Your Journal 210

Module II Lists, tuples and dictionaries, files, regular expressions, and date and time

  1. Lists: What They Are and How to Make One 217
  2. List Functions and Methods 222
  3. List Operations 226
  4. List Slices 231
  5. Nested Lists, and the Matrix 235
  6. Tuples 240
  7. The Functions That Work on a Tuple 244
  8. Creating a Dictionary 248
  9. Operators in a Dictionary 253
  10. Dictionary Methods 257
  11. Looping Over a Dictionary 261
  12. Operations on Dictionaries 265
  13. Opening and Closing a File 269
  14. Working with Text Files 273
  15. The with Statement 277
  16. Working with Binary Files 281
  17. Pickle: Storing an Object in a File 285
  18. seek() and tell(): Where You Are in a File 290
  19. Random Access to a Binary File 295
  20. Zipping and Unzipping Files 300
  21. Working with Directories 305
  22. Regular Expressions: What They Are and Why 310
  23. Sequence Characters in a Regular Expression 315
  24. Special Characters in a Regular Expression 320
  25. Using a Regular Expression on a File 325
  26. Retrieving Information from an HTML File 330
  27. Time in Python 335
  28. Dates 339
  29. The Date and Time Now, and Combining Them 343
  30. Formatting a Date and a Time 347
  31. Finding and Comparing Dates 352
  32. Sorting Dates 357
  33. Knowing the Time a Program Takes 362
  34. Working with the Calendar Module 367
  35. Module 2 Practicals: The Programs for Your Journal 373
  36. The Practical Examination, the Journal and the Viva 383
munotes.in

The chapters

Every chapter of this book comes with the B.Sc. (Computer Science) Semester 1 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 for the same subject.

Issue
Done!