126x Filetype PDF File size 0.18 MB Source: silveroakuni.ac.in
SILVER OAK UNIVERSITY College of Technology (01) Bachelor of Technology in Mechanical Engineering (012) Subject Name: Fundamentals of Python Programming Subject Code: 1010123364 Semester: 6th Prerequisite: Concepts of Programming Logic, Basic knowledge of C and C++ Programming. Objective: This course introduces students the fundamentals of core python programming language and to use it for different applications development. It will help students to learn the core programming basics and program design with functions using Python programming language. In this age, engineers from all branches must learn Python Programming to build applications in their core domain. Teaching and Examination Scheme: Teaching Scheme Evaluation Scheme Contact Theory Practical Total L T P Hours Credit CIE ESE CIE ESE Marks (TH) (TH) (PR) (PR) 3 0 2 5 4 40 60 20 30 150 Content: Unit Contents Teaching Weightage No. Hours % Introduction to Python Programming: 1 History of Python, Python Features, Local Environment Setup, 2 4 Installation and Working with Python, Setting up PATH Basics of Python Programming: First Python Program, Python Variables, Identifiers, Comments, 2 Keyword, Indentation in Python, Getting User Input in Python, 5 10 Type Conversion, Comparison of Python with other programming languages. Data Types in Python Programming: Scalar Types, Sequence Type, Mapping Type, Set Types, Mutable Types: List, Dictionary, Set, Immutable Types: 3 Numbers, String, tuple. 8 18 Lists: Declaring lists, Basic list operations, List methods, List comprehensions, looping in lists. Tuple: Creating tuple, Accessing values in a tuple, Tuple Methods. Set: Creating and modifying sets. Dictionaries: Creating a dictionary, accessing values, add, modify, delete, looping over a dictionary. Python Operators and Python Condition and Control Structures: Operators in Python: Arithmetic, Assignment, Comparison, 4 Logical, Identity, Membership, Bitwise 8 18 Condition and Control Structures: If statement, if ...else statement, elseif statement, while loop, for loop, using for loop with range (), nested if and for loops, Break statement, Continue statement, Pass statement Functions in Python: Introduction, function declaration and definition, function call, 5 variable scope and lifetime, the return statement, Types of 6 14 Arguments, Recursion, Generating Random Numbers, Math Module Python Strings: 6 Basics of Strings, String Slicing, Concatenation, Modifying 4 8 Strings, Format Strings, String Methods Object Oriented Concepts in Python: 7 Overview of OOP, creating a class, The Self variable, 6 14 Constructor, Creating and Destroying Objects, public and private data members, Basics of Inheritance and Polymorphism. Advanced Topics in Python Programming: 8 Introduction to Libraries: Numpy, Pandas, matplotlib, Pillow, 6 14 Introduction to different framework in python, Recent Trends in Python. Course Outcome: Sr. No. CO statement Unit No CO-1 Explain basic principles of Python programming language 1,2 To be able to understand the various data structures available in Python CO-2 programming language and apply them in solving computational 3 problems. CO-3 To be able to understand the python operators and semantics of control 4 flow statements and loops CO-4 Apply functions and string handling in Python to solve problems 5,6 CO-5 Analyze the concepts of object-oriented approach to solve problems 7 CO-6 To be able to use inbuilt library for the real time application 8 Teaching & Learning Methodology: The various methods or tools follows by the faculties to teach the above subject are: 1. The course includes a laboratory, where students get the opportunity to practically apply the theoretical knowledge they have acquired in the lectures. 2. Lectures with attractive PowerPoint presentations 3. Video Lectures List of Tutorials: The students will have to solve at least five examples and related theory from each topic as an assignment/tutorial. 1. Write a Python Program to find area of a circle. Take radius as user input. Also, know the data type of a radius using Type statement. 2. Write a Python Program, a. To create, append, and remove lists in python. b. To create a tuple with different data types and to create a tuple with numbers and print one item. c. To create, update and add member(s) in a set. d. To create dictionary 3. Write a Python program (using function), a. To print the even numbers from a given list. b. To create and print a list where the values are square of numbers between 1 and 30 (both included). 4. Write a Python Program to count all lower case, upper case, digits, and special symbols from a given string. 5. Write a program to create a Student class with name, age and marks as data members. Also create a method named display() to view the student details. Create an object to Student class and call the method using the object. 6. Write a Python Program to implement multilevel inheritance. Books Recommended: 1. Introduction to Programming Using Python by Y. Daniel Liang, Pearson 2. Python Programming: Using Problem Solving Approach by Reema Thareja, Oxford University Press 3. Python the Complete Reference by Martin C Brown, Tata Mcgraw Hill, India 4. Programming and Problem Solving with Python by Ashok Kamthane and Amit Ashok Kamthane, Tata Mcgraw Hill, India 5. John V Guttag. “Introduction to Computation and Programming Using Python”, Prentice Hall of India List of Open-Source Software/learning website: • http://silveroakuni.ac.in/video-lecture • https://nptel.ac.in/ • https://nptel.ac.in/courses/112/105/112105124/
no reviews yet
Please Login to review.