Page 17 - R2017 Final_BE Biomedical Curriculum and Syllabus - REC
P. 17

Department of BME, REC

               UNIT II       DATA, EXPRESSIONS, STATEMENTS AND CONTROL FLOW                               9
               Python interpreter and interactive mode - values and types - data types – variables – keywords -
               expressions  and  statements  -  python  I/O  -  operators  -  precedence  of  operators  –  comments.
               Conditionals:  conditional  (if)  -  alternative  (if-else)  -  chained  conditional  (if-elif-else)  –  nested
               conditional. Iteration: while – for - break – continue – pass.  Illustrative programs: exchange the
               values of two variables - circulate the values of n variables - test for leap year.

               UNIT III      FUNCTIONS                                                                    9
               Function  calls  –  type  conversion  –  math  function  –  composition  -  definition  and  use  -  flow  of
               execution - parameters and arguments. Fruitful functions: return values – parameters - scope: local
               and global - recursion. Strings:  string slices – immutability - string functions and methods - string
               comparison. Illustrative programs: square root – GCD – exponentiation - sum the array of numbers
               - linear search - binary search.

               UNIT IV       COMPOUND DATA: LISTS, TUPLES AND DICTIONARIES                                9
               Lists - list operations - list slices - list methods - list loop – mutability – aliasing - cloning lists - list
               parameters. Tuples – immutable - tuple assignment - tuple as return value. Dictionaries: operations
               and  methods  –  dictionaries  and  tuples  –  dictionaries  and  lists.  Advanced  list  processing  -  list
               comprehension. Illustrative programs: Sorting.

               UNIT V        FILES, MODULES AND PACKAGES                                                  9
               Files and exception: file operation - text files - reading and writing files - format operator- command
               line  arguments  -      errors  and  exceptions  -  handling  exceptions  –  writing  modules  –  packages.
               Illustrative programs: word count - copy file – case studies.
                                                                                        TOTAL: 45 PERIODS
               OUTCOMES:
               On completion of the course students will be able to
                   ●  Develop algorithmic solutions to simple computational problems.
                   ●  Structure simple Python programs for solving problems.
                   ●  Decompose a Python program into functions.
                   ●  Represent compound data using Python lists, tuples and dictionaries.
                   ●  Read and write data from/to files in Python programs.

               TEXT BOOK:
                      1.  Allen  B.  Downey,  Think  Python:  How  to  Think  Like  a  Computer  Scientist,    Second
                          edition,   Updated     for   Python     3,    Shroff/O’Reilly   Publishers,   2016
                          (http://greenteapress.com/wp/think-python/)

               REFERENCES:
                      1.  Anita Goel, Ajay Mittal, Computer Fundamentals and programming in C, Pearson India
                          Publisher, First edition, 2013.
                      2.  John V Guttag, Introduction to Computation and Programming Using Python, Revised
                          and expanded Edition, MIT Press, 2013
                      3.  Robert  Sedgewick,  Kevin  Wayne,  Robert  Dondero,  Introduction  to  Programming  in
                          Python:  An  Inter-disciplinary  Approach,  Pearson  India  Education  Services  Pvt.  Ltd.,
                          2016.
                      4.  Timothy A. Budd, Exploring Python, Mc-Graw Hill Education (India) Private Ltd. 2015.
                      5.  Kenneth A. Lambert, Fundamentals of Python: First Programs, CENGAGE Learning,
                          2012.
                      6.  Charles  Dierbach,  Introduction  to  Computer  Science  using  Python:  A  Computational
                          Problem-Solving Focus, Wiley India Edition, 2013.
                      7.  The Python Tutorial, https://docs.python.org/2.7/tutorial/

               Curriculum and Syllabus | B.E Biomedical Engineering | R 2017                       Page 17
   12   13   14   15   16   17   18   19   20   21   22