BP101T

Basics of Python Programming for Pharmaceutical Sciences (Theory)

L-T-P2-0-0 Credits2 Session2026-27 TypeTheory
Appears in 1 semester

B.Pharm · Sem 1 (Core)

Syllabus

5 units · 30 lecture hours
Unit1

Unit 1

6 hrs

Introduction to Python programming Installing Python and an Integrated Development Environment (IDE) [Jupyter Notebook, PyCharm, VS Code etc.], Advantages of IDEs over text editors. Python variables and data types (integers, floats, strings, booleans), Type casting and basic operators (arithmetic, comparison, logical), Input and output operations. Basic string operations and manipulation techniques. Introduction to standard libraries and third-party libraries, installing and uninstalling libraries.

Unit2

Unit 2

6 hrs

Control Structures & Functions Conditional statements (if, if-else, if-elif-else), nested conditions Loops (for loop, while loop). Break and continue statements. Defining and calling functions, passing arguments and returning values. Writing modular programs for simple pharmaceutical applications- dosage calculation and BMI calculation.

Unit3

Unit 3

6 hrs

Data Structures & File Handling Lists, tuples, and dictionaries. Indexing and slicing lists, basic operations on lists and dictionaries, string manipulation techniques. Introduction to NumPy arrays, basic operations using NumPy (array creation, arithmetic operations). Reading and writing CSV files. Understanding structured healthcare datasets. Importing small pharmaceutical datasets and performing basic data access and manipulation tasks.

Unit4

Unit 4

6 hrs

Data Handling with Pandas Introduction to Pandas library. Pandas Series and DataFrame structures. Reading CSV and Excel files-PK study datasets and ADR reports Inspecting datasets using functions such as head (), tail (), info (), and describe (). Data cleaning techniques and handling missing values. Filtering and selecting data based on conditions. Grouping data and performing aggregation functions.

Unit5

Unit 5

6 hrs

Data Visualization with Matplotlib Introduction to Matplotlib. Creating line plots, histograms, scatter plots, and box plots. Labeling axes, titles, and legends. Create plots and visualize pharmaceutical datasets - concentration-time curves for oral and IV administration, ADR reporting rates across drugs, dissolution profiles. Scientific interpretation of plots.

Course Objectives6 points
  • The objectives of this course are to:
  • Introduce the fundamentals of Python programming for pharmaceutical sciences.
  • Develop basic programming skills using control structures, functions, and data structures.
  • Provide knowledge of data handling techniques for structured dataset management.
  • Familiarize students with data analysis tools such as NumPy and Pandas for healthcare datasets.
  • Enable students to visualize and interpret pharmaceutical data.
Course Outcomes (COs)5 outcomes

After completion of the course student will be able to:

  1. CO1Explain the fundamentals of Python programming, including variables, data types, operators, and libraries.
  2. CO2Analyze program logic using control structures and functions.
  3. CO3Organize, manipulate, and retrieve data using data structures and file handling techniques.
  4. CO4Analyze pharmaceutical datasets using Python libraries.
  5. CO5Visualize and interpret pharmaceutical data using graphical tools.
Recommended References (Preferably Latest Editions):5 books
  1. Weiss, C.J., 2017. Scientific Computing for Chemists with Python. Available at: https://weisscharlesj.github.io/SciCompforChemists/notebooks/introduction/intro.ht ml
  2. Perkovic, L., 2015. Introduction to Computing Using Python: An Application Development Focus. 2nd ed. Hoboken: Wiley.
  3. Sweigart, A., 2025. Automate the Boring Stuff with Python. 3rd ed. Available at: https://automatetheboringstuff.com/
  4. W3Schools, n.d. Python Tutorial. Available at: https://www.w3schools.com/python/
  5. Datasets for Education and Research: Mentors and students can access healthcare datasets from sources such as Kaggle (healthcare records), government agencies (healthdata.gov, WHO, https://www.data.gov.in/), and clinical trial registries (https://ctri.nic.in/, https://clinicaltrials.gov/). Always use data responsibly. Course Title Course Type

Previous Year Papers

Loading…

🙏 Aapke juniors aur doston ko aapki zarurat hai!

Aapke paas is subject ka koi purana paper hai? Upload kijiye. Aapka ek paper kisi junior ka exam aasaan bana sakta hai.

Upload previous year paper

Official AKTU syllabus

This subject is on page 7, 8, 9, 10 of the original AKTU PDF.

Official AKTU syllabus PDF ↗