These notes cover the full Python Programming course for BCA Semester III in four units. Each unit is split into short topics that take about 10 to 20 minutes to read, with worked examples, common mistakes and practice questions with answers.

What you will be able to do

Unit I: Introduction to Python and Strings

  • Describe the history and application areas of Python.
  • Explain the structure of a Python program and the rules for identifiers and keywords.
  • Use operators correctly according to their precedence.
  • Use the basic data types and convert between them.
  • Read input and print output in a formatted way.
  • Create strings and apply built-in methods, slicing, joining and formatting.

Unit II: Control Flow and Functions

  • Write programs using if, if-else, elif and nested conditions.
  • Use for and while loops, and the range function.
  • Control loops with break, continue and pass.
  • Define and call functions with default and keyword parameters.
  • Explain the scope and lifetime of variables.
  • Use lambda functions, assert statements, command line arguments and user defined modules.

Unit III: Lists, Tuples, Dictionaries, NumPy and Files

  • Distinguish mutable and immutable objects.
  • Create lists, tuples and dictionaries and apply their common functions.
  • Pass lists, tuples and dictionaries to functions and predict the effect.
  • Use the math module and NumPy arrays for numerical work.
  • Read and write text and binary files.
  • Use the pickle module and read and write CSV and JSON files.

Unit IV: Exception Handling and Data Visualization

  • Explain what an exception is and how it differs from a syntax error.
  • Use try, except, else and finally blocks.
  • Raise exceptions and describe the hierarchy of exceptions.
  • Define and use a user defined exception.
  • Draw labelled line plots, sine and cosine curves with Matplotlib.
  • Draw histograms, pie charts and simple 3D graphs.

Who this is for

BCA Semester III students studying Python Programming (course code 26BCA403SEC01), and anyone who wants a plain-English walk through the same syllabus. Start at Unit I unless you already know the basics.

Syllabus

Unit I: Introduction to Python and Strings

Topic Time
History, Applications and Structure of a Python Program 5 min
Identifiers, Keywords and Operators 5 min
Data Types, Type Conversion and Statements 5 min
Input and Output Statements 5 min
Strings: Creation, Operators and Built-in Functions 5 min
String Slicing, Joining and Formatting 5 min
Unit I review: summary, glossary and questions 10 min

Unit II: Control Flow and Functions

Topic Time
Conditional Statements 5 min
Loops and Loop Control Statements 5 min
Functions: Definition, Calling and Parameters 5 min
Scope, Lambda Functions, Assert and Modules 5 min
Unit II review: summary, glossary and questions 10 min

Unit III: Lists, Tuples, Dictionaries, NumPy and Files

Topic Time
Mutable and Immutable Objects: Lists 5 min
Tuples and Dictionaries 5 min
Passing Collections to Functions, the math Module and NumPy 5 min
Text and Binary Files 5 min
The pickle Module, CSV and JSON Files 5 min
Unit III review: summary, glossary and questions 10 min

Unit IV: Exception Handling and Data Visualization

Topic Time
Exceptions and the try-except Block 5 min
The else and finally Clauses, raise and the Exception Hierarchy 5 min
Data Visualization: Line Plots and Curves 5 min
Histogram and Pie Chart 5 min
Three-Dimensional Graphics 5 min
Unit IV review: summary, glossary and questions 10 min

How to study these notes

  1. Read one topic per sitting and try each worked example on paper before reading the solution.
  2. Answer the practice questions first, then check the answers at the end of the topic.
  3. Finish each unit with its review page and the question bank.

Sources

  • Official BCA syllabus Python Programming, course code 26BCA403SEC01