Python Programming
B.Sc. Data Science - Semester 1
This study material is designed for B.Sc. Data Science (Semester 1) students. It covers the Python
programming syllabus followed by most universities such as Mumbai University, PSGR
Krishnammal College, and SKACAS. The content includes basics of Python, control structures,
data structures, functions, modules, and introductory libraries.
Unit 1: Introduction to Python
• History and features of Python
• Installing Python and IDEs (Anaconda, Jupyter, PyCharm, VS Code)
• Python interpreter, keywords, identifiers, and indentation
• Input, output, and type conversion
Unit 2: Control Structures
• Decision making (if, if-else, nested if)
• Loops: for, while
• Loop control: break, continue, pass
Unit 3: Data Structures in Python
• Strings and string operations
• Lists, tuples, dictionaries, and sets
• Indexing, slicing, and built-in functions
Unit 4: Functions and Modules
• Defining and calling functions
• Arguments, return values, scope, and recursion
• Modules and packages
• Importing standard modules (math, random, datetime)
Unit 5: File Handling and Exception Handling
• Reading and writing files
• Modes: r, w, a, rb, wb
• Exception handling with try, except, finally
Unit 6: Introduction to Libraries
• NumPy basics – arrays, indexing, operations
• Pandas basics – Series, DataFrame
• Matplotlib basics – plotting graphs
This PDF combines the essential concepts and units of Python programming for Semester 1 B.Sc.
Data Science students. Students are encouraged to practice coding alongside these notes using
Jupyter Notebook or any Python IDE.