munotes® Sign in

Fundamentals of Python Programming Notes | B.Sc. (Information Technology) Semester 2 | Mumbai University | munotes

MU B.Sc. (Information Technology) student group Free to join

A munotes Edition munotes.in

Fundamentals of Python Programming

B.SC. (INFORMATION TECHNOLOGY) · SEMESTER 2

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 First Year

Contents

Module I Overview of Python: History & Versions, Features of Python, Execution of a Python

  1. Python: Its History and Its Versions 1
  2. The Features of Python 9
  3. How a Python Program Is Executed 16
  4. The Flavours of Python 24
  5. The Innards of Python and the Python Interpreter 31
  6. Memory Management and Garbage Collection in Python 39
  7. Python Compared with C and Java 46
  8. Installing Python and Running Your First Program 54
  9. Getting Help, and IDLE 61
  10. Comments and Docstrings 69
  11. Data Types, and the Numeric Types: int, float and complex 77
  12. Compound Data Types: Strings, Lists, Tuples and range 85
  13. The Boolean Data Type 92
  14. Dictionaries, Sets and Mappings: A First Look 98
  15. The Basic Elements of Python: Tokens, Keywords, Identifiers and Literals 106
  16. Variables: Names, Values and Assignment 115
  17. Arithmetic, Assignment and Unary Minus Operators 122
  18. Relational Operators 131
  19. Logical Operators 138
  20. Bitwise Operators 146
  21. Membership and Identity Operators 154
  22. Precedence and Associativity of Operators 161
  23. Reading Input: The input() Function 169
  24. Output Statements and the Forms of print() 176
  25. Printing a Formatted String 183
  26. Command Line Arguments 190
  27. Control Statements and the if Statement 197
  28. The if...else and if...elif...else Statements 205
  29. The while Loop 213
  30. The for Loop and range() 220
  31. Infinite Loops and Nested Loops 226
  32. The else Suite of a Loop 234
  33. break, continue and pass 242
  34. The assert and return Statements 250
  35. Practicals: Hello World, Adding Two Numbers and a Square Root 257
  36. Practicals: The Area of a Triangle, Odd or Even, and a Leap Year 266
  37. Practicals: The Largest of Three Numbers and a Prime Number 275
  38. Practicals: The Factorial of a Number and Kilometres to Miles 285
  39. Creating Strings and the Functions of Strings 293
  40. Working with Strings: Length, Indexing and Slicing 301
  41. Repeating, Concatenating, Checking Membership and Comparing Strings 308
  42. Removing Spaces, and Finding and Counting Substrings 317
  43. Strings Are Immutable, and Splitting and Joining Them 325
  44. Changing Case, and Checking the Start and End of a String 332
  45. Sorting Strings, Searching in Strings and the Testing Methods 340
  46. Formatting Strings 348
  47. Counting Characters and Words, and Inserting a Substring 356
  48. Practicals: A Vowel Check, and the Length of a List or String 364
  49. Practicals: Palindrome, Reversed Words and a Pangram 372

Module II List and Tuples: Lists, List Functions and Methods, List Operations, List Slices, Nested

  1. Lists, and the List Functions and Methods 380
  2. List Operations and List Slices 388
  3. Nested Lists 396
  4. Tuples and the Functions in a Tuple 404
  5. Creating a Dictionary, and the Operators in a Dictionary 412
  6. Dictionary Methods 421
  7. Looping Over a Dictionary, and Operations on Dictionaries 429
  8. Converting Lists and Strings into a Dictionary, and Passing One to a Function 437
  9. Sorting a Dictionary with lambda, and Ordered Dictionaries 445
  10. Arrays: Creating Them, Indexing and Slicing 453
  11. Basic Array Operations, Processing an Array and Mathematical Operations 462
  12. Aliasing an Array: a View and a Copy 471
  13. NumPy Arrays: Basic Slicing and Advanced Indexing 479
  14. The Dimensions and Attributes of an Array 488
  15. Defining a Function, Calling It and Returning Results 496
  16. Returning Multiple Values from a Function 505
  17. The Built-in Functions, and a Function Against a Method 513
  18. Passing a Value by Object Reference 522
  19. Parameters and Arguments: Formal, Actual, Positional, Keyword and Default 530
  20. Arbitrary Arguments: *args and **kwargs 538
  21. Recursive Functions 546
  22. Lambda Functions with filter(), map() and reduce() 555
  23. Modules in Python 564
  24. Practicals: A Common Member of Two Lists, and Removing Chosen Elements 572
  25. Practicals: An Array of Numbers, Sorting a Dictionary and Concatenating Dictionaries 581
  26. Practicals: Summing a Dictionary, the LCM and HCF, and an ASCII Value 590
  27. Practicals: A Simple Calculator, and a Range of Items in an Array 599
  28. The Practical Examination: The Slip, the Journal and the Viva 609
munotes.in

The chapters are locked

Get the notes to read all 77 chapters of this 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!