Download as pdf
Download as pdf
You are on page 1of 10
Python Programming Practice Course Code: 22089 Program Name _: Diploma in Electronics I Program Code 21K Semester : Sixth Course Title : Python Programming Practice Course Code + 22089 1. RATIONALE Python is a popular, general-purpose, high-level, interpreted, interactive, object-oriented, open-source programming language. Python code is simple, short, readable, intuitive, and powerful, and thus it is effective for computing and problem solving. The course starts with the basies of Python programming and deals with lists, dictionaries, functions, exceptions, files and all the necessary code elements to develop the code for solving the given problem. The course curriculum will enable the students to develop the application code using the concepts of Python, 2. COMPETENCY The aim of this course is to help the student to attain the following industry identified Competency through various teaching learning processes: + Develop code for given application using concept of Python. 3. COURSE OUTCOMES (COs) The theory, practical experiences and relevant soft skills associated with this course are to be taught and implemented, so that the student demonstrates the following industry-oriented COs assuciated with the above-mentioned competency: a) Develop Python code to perform basic operations using Control Structures. b) Perform Operations on Data Structures using Python. c) Develop Functions, Modules, Packages for given problem using Python. 4) Develop Python code to demonstrate use of File I/O operations and Handle Exceptions. ¢) Develop Application code for Arduino using Python. 4. TEACHING AND EXAMINATION SCHEME Credit ‘Theory T Practical 1 uf tf] TP Pace | ESE PA ESE PA, Tout] A Dame Ee P| wf wa EP P| | a|-fao] 4 | - s -|-]- [|] |» | (-): For the practical only courses, the PA has two components under practical marks ie. the assesment of practicals (seen in section 6) has a weightage of 60% (i.e. 15 marks) and microproject assesment (seen in section 12) has a weightage of 40% (i.e. 10 marks). This is designed to facilitate attainment of COs holistically, as there is no theory ESE. 4:External Assesment Legends: L-Lecture; T ~ Tutorial/Teacher Guided Theory Practice; P - Practical; C — Credit, ESE - End Semester Examination; PA - Progressive Assessment. a 5. COURSE MAP EI This course map illustrates an overview of the flow and linkages of the topics og a ‘outcomes (details in subsequent sections) to be attained by the student by the end ofthe €0 MSDTE — Final Copy Dt. 11.07.2023 Page 1 of 10 Python Programming Practice Course Code: 22089 domains of leaming in terms of the industry/employer identified competency depicted at the centre of this map. VOR bg ate Gig meante >, (eulattaain) Sie (gee SSE : La a ‘Competency. \ ee i i Beas oka em | Cee agin i ooo 7 oan) i 7 —— | a \ Civyretorn -" _ ‘ E>, Saas ¥ Tepes ation ‘ing Setenens doe 6. SUGGESTED PRACTICALS The practicals in this section are PROs (i.e. sub- components of the COs) to be developed and assessed in the student for attainment of the competency: ‘message on screen (using interactive and script mode) F at | Approx. | = Practical Outcomes (PrOs) vat | te | Required |__| After installation of Python IDE, develop a program to display given ; fae Develop Python program to demonstrate use of following operators: a) Arithmetic Operators b) Logical Operators c)_Bitwise Operators a) ‘if statement L) ‘if... else” slateueut Develop Python program to demonstrate use of conditional a: s fej Page 2 of 10 Python Programming Practice Course Code: 22089 ana Practical Outcomes (PrOs) Unit | ApPros: | | N® | pemuived ©) if....0lif statement /match case | Develop Python program to demonstrate use ofooping statements: | A a) ‘while’ loop i ie b) ‘for’ loop ¢)_Nested loops (pattern printing) Develop Python program to perform following operations on Lists: a) Create list 5 b) Access list 0 o2* ©) Modify list (Add item, Change item, Remove item) d) Delete list Develop Python program to perform following operations on Tuples: é a) Create Tuple b) Access Tuple ¢) Delete ‘Tuple Develop Python program to perform following operations on Set: a) Create Sel, Access Set elements 7 b) Modify Set u 02 0) Delete Set d) Operations like Union, Intersection, Difference etc. Develop Python program to perform following operations on Dictionaries: a a) Create Dictionary | b) Access Dictionary elements ©) Modify Dictionary 4) Delete Dictionary Develop Python program to demonstrate : 9 a) Use of Built-in functions (math, string), m o2* b) User defined functions. Develop Python program to demonstrate: 10 a) Use of Built-in module (e.g. keyword, math, number, operator) | IIT o2* b) User defined module Develop Python program to demonstrate: a) Use of Built-in packages at least two (e.g. NumPy, Pandas 0 02 0 o2* a n Scipy, Seaborn, time, serial etc. ) Z ” b) User defined packages Develop Python program to handle user defined exception for given 12 | problem Vv 02 13 __| Develop Python program to perform File 1/0 operations. Ww | oF 14 [Develop Python program to operate LED interfaced with Arduino Vv 02 Develop Python program to control Servo-motor interfaced with 15 . v 02 Arduino 16 | Develop Python program to operate Buzzer interfaced with Arduino Vv a] Not ¢ i. A suggestive list of PrOs is given in the above table. More such PrOs can b¢&ideg to, MSBTE - Final Copy Dt. 11.07.2023 Page 3 of 10 ii. Python Programming Practice Course Code: 72089 which, the practicals. marked as “*' are compulsory, so that the student reaches the ‘Precision Level’ of Dave's ‘Psychomotor, Domain Taxonomy” as generally required by the industry: The ‘Process’ and ‘Product’ related skills associated with each PrO is to be assessed according to a suggested sample given below. [S.No. | Performance Indicators _ Weightage in % ] a.__| Building programming blocks —_ 20 b.__ | Logic building ability 20 c.__ | Debugging ability omamene d__| Correctness of desired output _ 10 e. _| Answer to sample questions 15 £__ | Submit report in time 15 Total 100 The above PROs also comprise of the following social skills/attitudes which are Affective Domain Outcomes (ADOs) that are best developed through laboratory/field based experiences: a, b. c. a Follow safety practices. Follow proper Data organization practices Demonstrate working as a leader/a team member. Follow Ethical Practices. ‘The ADOs are not specific to any one PRO, bul are embedded in many PROs. Hence the acquisition of ADOs takes place gradually in the student as s/he undertakes a series of practical experiences over a period of time. Moreover, the level of achievemnet of the ADOs according to Krathwohl’s ‘Affective Domain Taxonomy”, should gradually increase as planned below: “Valuing Level’ in 1* year “Organising Level’ in 2" year “Characterising Level’ in 3 year. MAJOR EQUIPMENT/ INSTRUMENTS REQUIRED The major equipment with broad specification mentioned here will usher in uniformity in conduct of practicals, as well as aid to procure equipment by authorities concemed. oe Equipment Name with Broad Specifications ro. : T _ | Personal Computer System (i3 series AMD Ryzen3 equal to or higher series), | AI 8GB RAM , 512 GB SSD/HDD), LCD/LED Monitor or (Any Computer | System with basic configuration) Internet Connectivity 2_ | Operating System: Windows 8/10/11 or above, Linux, MAC OS (any One) 3 _ | *Python’ Interpreter/ IDE, Anaconada 4 _| Arduino board with Arduino IDE, USB cable, LED, Servo-Motor, Buzzer 1416 8. UNDERPINNING THEORY COMPONENTS The following topics/subtopics should be taught and assessed to develop UOs in cognitive domain for achieving the COs to attain the identified competency. MSBTE Final Copy Dt. 11.07.2033, Page 4 of 10 Python Programming Practice Course Code: 22089 Unit Unit Outcomes (WOs) Topics and Sub-topies |___Gin cognitive domain) - Unit=1 Ta, Develop Python code to] 1.] Features of Python, Python environment Basie demonstrate use of variables, | setup-Installation and working of IDE, Constructs in | keywords, constants in| —_ Interactive and Script mode,Python Data Python Python. Types and uses, Indentation, Comments Programming | 1b. Develop Python code to use of | 1.2 Basic Operators: Arithmetic, Comparison/ basic Operators. Relational, Assignment, Logical, Bitwise, le. Develop a python code using | Membership, Identity operators, Python Conditional statement. Operator Precedence 1d, Develop a python code using | 1.3 Conditional Statements (if, if else, nested Looping statement. if) 1.4 Looping in python (while loop, for loop, nested loops), loop manipulation using inue, pass, break, else, [Unie 2a Develop python program to | 2.1 Lists: Defining lists, accessing values in list, Data use and mampulate Lists for | deleting values in list, updating lists. List Structures in | the given problem Indexing and Slicing, List build-in methods Python 2b. Develop python program to| and functions. use and manipulate Tuples for | 2.2 Tuples: Creating tuples, Accessing values in the given problem Tuples, deleting values in Tuples, and 2c. Develop python program to| updating uples. Basic ‘Tuple operations, use and manipulate Sets for| Built — in Tuple functions. the given problem 2.3 Sets:Accessing values in Set, deleting 2d. Develop python program to values in Set and updating Sets. Basic Set use and manipulate operations, Built — in Set functions. Dictionaries for the given | 2.4 Dictionaries: Accessing values in problem Dictionary, deleting values in Dictionary and updating Dictionary. Basic Dictionary operations, Built — in Dictionaries functions. Uniti 3a. Use the Python standard | 3.1 Use of Python built — in functions Python functions for the given| (e.g. typeldata conversion functions, math Functions, problem. functions etc.) modules, and_ | 3b. Develop relevant user defined | 3.2 User defined functions: Function definition, Packages functions for the given| Function calling, function arguments and problem using Python code. parameter passing, Return statement, Scope 3c. Develop Python module for} of Variables: Global variable and Local the given problem Variable. 3d. Develop Python package for | 3.3 Modules: Writing modules, importing the given problem modules, importing objects from modules, Python built - in modules (e.g. Numeric and mathematical module, Functional Programming Module) Namespace and Scoping. 3.4 Python Packages: Writing Python packages, Using standard (e.g. math, scipy, Numpy, matplotlib, pandas etc.) and user defined packages. z MSBTE — Final Copy Dt. 11.07.2023 Page § of 10 Python Programming Practice Course Code: 22089 Unit Unit Outcomes (UOs) (in cognitive domain) Unit-1V 4a, Develop Python code to read Topics and Sub-topies | |4.11/0 Operations: Reading keyboard input File VO. different values from Printing to screen |Handlingand | keyboard and display on | 4.2 File Handling: Opening file in different Exception | _ terminal modes, accessing file contents using Handling | 4b. Develop Python code to read, | standard library functions, Reading and write ,update contents to the | writing files, closing a file, Renaming and file deleting files, Directories in Python, File | de. Develop Python code for the | and directory related standard functions | Handling the Exceptions. | 4.3 Exception Handling: _ Introduction, “try:except:’. statement, ‘raise’ statement, | User defined exceptions Ui 3a. Develop Python code to | 5:1 Arduino Uno Board, installing Arduino Python operate the LED tor specific interfacing ‘time interval with Arduino |5b.Develop Python code to | operate Buzzer, Servo-motor l IDE, Working with Arduino , Interfacing of | ‘various hardware componente. | .2 Arduino Programming: sketch 5.3 pySerial/pyfirmata for communication with Arduino. 9. SUGGESTED SPECIFICATION TABLE FOR QUESTION PAPER DESIGN Unit Unit Title Teaching | Distribution of Theory Marks No. Hours | R | U | A | Total | Level | Level | Level | Marks T__| Basie Constructs in Python Programming 06 T__| Data Structures in Python 06 . Ill__| Python Functions, Modules, and Packages 08 Not Applicable as No Theory TV _| File /O handling and Exception Handling 06 ESE V_| Python interfacing with Arduino 06 Total 32, Legends: R=Remember, U=Understand, A=Apply and above (Bloom's Revised taxonomy) Note: This specification table provides general guidelines to assist student for their learning and to teachers to teach and assess students with respect to attainment of UOs. The actual distribution of marks at different taxonomy levels (of R, U and A) in the question paper may vary from above table. 10. | SUGGESTED STUDENT ACTIVITIES Other than the classroom and laboratory leaming, following are the suggested student-related co-curricular acti ies which can be undertaken to accelerate the attainment of the various outcomes in this course. Students should conduct following activities in group and prepare reports of about 5 pages for each activity, also collect/record physical evidences for their (students) portfolio which will be useful for their placement interviews: a) b) °) d Undertake the micro project. competition. etc.), Python Libraries. ©) tnpleuient Problem Based Lewuiug (PBL). Prepare chart/Poster to represent Python built-in functions, method( Self prepared Quiz based on course unit contents Participate/assist in organizing activities like Blind code Competition’ Code Debugging MSBTE — Final Copy Dt. 11.07.2023, Page 6 of 10 Python Programming Practice Course Code: 22089 f) Design a game like Sudoku, 11. SUGGESTED SPECIAL INSTRUCTIONAL STRATEGIE! These are sample strategies, which the teacher can use to accelerate the attainment of the various learning outcomes in this cour a) Massive open online courses (MOOCs) may be used to teach various topics/sub topics. b) ‘L’ in item No. 4 does not mean only the traditional lecture method, but different types of teaching methods and media that are to be employed to develop the outcomes. ©) About 15-20% of the topics/sub-topics which is relatively simpler or descriptive in nature is to be given to the students for self-directed learning and assess the development of the COs through classroom presentations (see implementation guideline for details). d) With respect to item No.10, teachers need to ensure to create opportunities and provisions for co-curricular activities, e) Guide student(s) in undertaking micro-projects. £) Demonstrate students thoroughly related practical setup before they start doing the practice. 2) Encourage students to refer different websites to have deeper understanding of the subject. h) Observe continuously and monitor the performance of students in Lab, 12. SUGGESTED MICRO-PROJECTS Only one micro-project is planned to be undertaken by a student thal needs to be assigned to him/her in the beginning of the semester. In the first four semesters, the micro-project are group-based. However, in the fifth and sixth semesters, it should be preferably be individually undertaken to build up the skill and confidence in every student to become problem solver so that s/he contributes to the projects of the industry. In special situations where groups have to be formed for micro-projects, the number of students in the group should not exceed three. The micro-project could be industry application based, internet-based, workshop-based, laboratory- based or field-based. Each micro-project should encompass two or more COs which are in fact, an integration of PrOs, UOs and ADOs. Each student will have to maintain dated work diary consisting of individual contribution in the project work and give a seminar presentation of it before submission. The total duration of the micro-project should not be less than 16 (sixteen) student engagement hours during the course. The student ought to submit micro-project by the end of the semester to develop the industry oriented COs. A suggestive list of micro-projects is given here. Similar micro-projects could be added by the concerned faculty: a) Create an English dictionary which is able to perform following function. i) Add a word and its meaning. i) Delete a word and its meaning. Update word or its meaning. iv) Print list of word and its meaning. b) Develop student management system which will able to: i) Add ii) Delete iii) Update iv) Display student related information like Roll No, Name, Age, Address, Email-Id, Contact Number etc. ©) Develop Games using Python program like Tic-Tac-Toe Game, Sudoku Solver, Data Slicing, Number Guessing Game, Word Guessing Game, Alarm Clock, Calculator, Random Password Generator ete. 4) Develop Chatbot using Python program. €) Develop Management System which will able to add, delete, update and display information ie. Hotel Management System, Student Record System, Library Managemer nisms Management System, Employee Management System 1) Design and Develop Arduino circuit interfacing with any type of sensor ( ‘Temperature, Pressure, Light etc.) using Python. MSBTE — Final Copy Dt. 11.07.2023 Page 7 of 10 Python Programming Practice Course Code: 22089 g) Develop Arduino based application for Boiler System which maintains the Temperature in Industry h) Develop GUI Based Application using tkinter Library for Designing of Basic calculator using Button or Payroll Calculation using GUI or Form Generation or any similar type of form Designing) i) Develop GUI Application with database connectivity for student record system or student feedback form and student feedback analysis or Consumer feedback system or similar type of applications) (Student can Use functions, classes or any other features/library of ‘Python’ for microproject. ) 13, | SUGGESTED LEARNING RESOURCES Title of Book Author Publication Rao, K. Nageswara | Scitech Publications (India) Pvt. Lid. Shaikh Akbar ISBN: 9789385983450 Sth Edition, O'Reilly Publication 1 | Python Programming 2 | Leaming Python rez a ISBN-13: 978-1449355739 | Python Essential 4th Edition, Addison-Wesley Professional vython Essential ition, Addison-Wesley Professional, 3 | Reference eek ISBN: 9780672329784 PACKT Publishing Open Source, ISBN 978-1-78328-593-8 2" Edition, O’Reilly Publication, ISBN: 1491919531 | Python Programming. aes Pratik Desai 5. | Head First Python Paul, Barry Python Crash Course, | Eric Matthes 3rd Edition, No Starch Press, Publication A Hands-On, Project ISBN:978-1718502703 6 | Based Introduction to Programming 14, SUGGESTED SOFTWARE WEBSITES Following websites are suggested for Python Programming IDE. Any other equivalent open source software can be used if required. Sr.No. | Keyword QRCode | ctsite | bttpsi/iwww.python.ore/downloads! i Python IDE (for Windows) hhttps://www python. org/downloads/macos/ | Python for MacOS MSBTE — Final Copy Dt. 11.07.2023 Page 8 of 10 Python Programming Practice | Sr.No.) Keyword QR Code Course Code: 22089 Website a iy https://pynative.com/online-python-code-editor- Python online EAE | io excost i y S | to-execute-python-code/ 5 [eon ae " | 3° Jexecute python | acd | code Blisise hiips:/www.anaconda.com/producis distribution | 4 Anaconda | EN SUGGESTED ONLINE TEACHING/LEARNING RESOURCES Following Learning websites ure suggested (o students to enhanee their skills in specific learning domain. It helps student to visualize and demonstrate the concept easily using given online resources, Sr.No. | Keyword QR Code Weta 7 htips://Avww tutorialspoint.com/python/index.h Python Bie lin eS H 1 Tutorial 5 fee https://www.programiz.com/python- 7 Python- SE rosramming 2 Programiz a https://www-gecksforgeeks.org/python- 'ython programming-language/ 3 Tutorial Itips://iwww.wschools.com/python/defaultas | Python 5 | 4 Tutorial | hips: //spoken-tutorial.org/ Python 5 | Programming course Python htips:/www.w3resource.com/python- Eee. exercises! 6 Practice, solution MSBTE — Final Copy Dt. 11.07.2023 Page 9 of 10 Python Programming Practice Course Code: 22089 Sr.No. Keyword | QR Code ies | | https://vww javatpoint.com/python-files-io | Python file 7 | WO handli | biipsi/does python.org/3/library/ : Python Libraries Pyibon htips://ekumbhaicte- Preaninien india.org/userdiplomabook.php a by Dr. | Rupesh Narse : Tips: /python-iitk.vlabs ac in/Objective.himl Python 10 | Programming Lab 3 hueps://wwww.sarkarirush.com/python-erash- Python Crash BE | course-pafl 11 | Course by Eric Matthes ict MSBTE — Final Copy Dt. 11.07.2023 Page 10 of 10

You might also like