Skip to main content
  1. Resources/
  2. Study Materials/
  3. Information & Communication Technology Engineering/
  4. ICT Semester 2/
  5. Python Programming (DI02032011)/

·
Milav Dabgar
Author
Milav Dabgar
Experienced lecturer in the electrical and electronic manufacturing industry. Skilled in Embedded Systems, Image Processing, Data Science, MATLAB, Python, STM32. Strong education professional with a Master’s degree in Communication Systems Engineering from L.D. College of Engineering - Ahmedabad.
Table of Contents

GUJARAT TECHNOLOGICAL UNIVERSITY
#

Program Name: Diploma in Engineering
#

Level: Diploma

Branch: Information & Communication Technology Course / Subject Code : DI02032011
#

Course / Subject Name : Python Programming

w. e. f. Academic Year:2024-25
Semester:2 nd
Category of the Course:PCC

Prerequisite:

Basic computer skills

Rationale:

Programming skills using Python Language have become prevalent and increasingly popular in the Information Technology domain. The Python programming language is one of the most popular programming languages worldwide. The Python Programming for Information Communication Technology (ICT) course emphasizes the use of this popular programming platform in multiple domains. Python is a modern language for writing compact codes specifically for programming Server-side web apps, Data Analytics and Machine Learning, an important Artificial Intelligence domain. Furthermore, Python has gained popularity in scientific computing, production tools and game programming. The following course focuses on developing Python Programs for programming tasks where the students are encouraged to create basic applications using different open source tools. At the end of the course, the student will be developing adequate basic programming skills using python language.

Course Outcome:
#

After Completion of the Course, Student will able to:

NoCourse OutcomesRBT Level
01Prepare flowchart and algorithm for solving computing problems.R,U,A
02Develop python programs to solve simple problems.R,U,A
03Apply control structure feature of python for developing programs.R,U,A
04Develop Python Programs using built-in functions, modules and librariesR,U,A
05Develop python programs using dictionary, list, string, set and tuple manipulation functions.R,U,A

*Revised Bloom’s Taxonomy (RBT)

GUJARAT TECHNOLOGICAL UNIVERSITY
#

Program Name: Diploma in Engineering
#

Level: Diploma
#

Branch: Information & Communication Technology
#

Course / Subject Code : DI02032011

Course / Subject Name : Python Programming

Teaching and Examination Scheme:
#

Teaching Scheme (in Hours)Teaching Scheme (in Hours)Teaching Scheme (in Hours)Total Credits L+T+ (PR/2)Assessment Pattern and MarksAssessment Pattern and MarksAssessment Pattern and MarksAssessment Pattern and MarksTotal
LTPRCTheoryTheoryTutorial / PracticalTutorial / PracticalMarks
LTPRCESE (E)PA / CA (M)PA/CA (I)ESE (V)Marks
302470302030150

Course Content:
#

Unit No.ContentNo. of Hours% of Weightage
1.Problem Solving using Flowchart and Algorithm0510
2.Introduction to Python0614
3.Flow of Control1223
4.Functions0820
5.Dictionary, List, Set, String and Tuple1433
Total45100

Suggested Specification Table with Marks (Theory):
#

Distribution of Theory Marks (in %)

R LevelU LevelA LevelN LevelE LevelC Level
222850

Where R: Remember; U: Understanding; A: Application, N: Analyze and E: Evaluate C: Create (as per Revised Bloom’s Taxonomy)

References/Suggested Learning Resources:
#

(a) Books:
#

  1. Learn Programming in Python with Cody Jackson by Cody Jackson, Packt Publishing, 2018, ISBN : 9781789531947
  2. Python Basics: A Practical Introduction to Python 3 by David Amos, Dan Bader et. al. Real Python, 2021 ISBN : 9781775093329
  3. Introduction to Problem Solving with Python by E. Balagurusamy Mc Graw Hill India, New Delhi, 2017 ISBN: 9789352602582
  4. Beginning Python by James Payne, Wiley, 2010 ISBN: 9780470414637
  5. Think Python by Allen Downey, O’Reilly, USA, 2016, ISBN : 978- 9352134755

GUJARAT TECHNOLOGICAL UNIVERSITY
#

Program Name: Diploma in Engineering
#

Level: Diploma
#

Branch: Information & Communication Technology
#

Course / Subject Code : DI02032011
#

Course / Subject Name : Python Programming

(b) Open source software and website:
#

  1. www.python.org
  2. https://www.w3schools.com/python/python_intro.asp
  3. https://www.geeksforgeeks.org/python-programming-language-tutorial/
  4. www.learnpython.org
  5. www.hackr.io/tutorials/learn-python
  6. www.sololearn.com/learning/1073
  7. www.nptel.iitm.ac.in

Suggested Course Practical List:
#

S. No.Practical Outcomes (PrOs)Uni t No.Approx . Hrs. required
1Prepare flowchart and algorithm for a given problem.(Following are the sample programs. Faculty can select any other similar programs for the practice of the students.) i. Find the sum of two given numbers. ii. Find a maximum out of two given numbers. iii. Find whether a given number is odd or even. iv. Find a maximum out of three given numbers.I02
2a) Write a Program to print your name, mobile number, and date of birth. b) Develop a Program to identify data-types in python.II02
3a) Create a Program to read three numbers from the user and find the average of the numbers. b) Develop a Program that can calculate simple interest and compoundII02
4a) Identify whether the scanned number is even or odd and print an appropriate message. b) Create a Program to find a maximum number among the given three numbers.II I02
5Develop a Program to demonstrate the basic functionalities of a standard calculator.II I02
6a) Write a Python program to print 1 to 10 numbers using loops. b) Write a Program to show whether the entered number is prime or not.II I02

GUJARAT TECHNOLOGICAL UNIVERSITY
#

Program Name: Diploma in Engineering
#

Level: Diploma
#

Branch: Information & Communication Technology Course / Subject Code : DI02032011
#

Course / Subject Name : Python Programming

7Write a Program to display the following patterns. A) B) 1 * * * * * 1 2 * * * * 1 2 3 * * * 1 2 3 4 * *II I02
81 2 3 4 5 * Create a User-defined function to print the Fibonacci series of 0 to N numbers. (Where N is an integer number and passed as an argument)I V02
9a) Develop a User-defined function to find the factorial of a given number. b) Write a Program using the function that reverses the entered value.I V02
10Write a Program that determines whether a given number is an ‘Armstrong number’ or a palindrome using a user-defined function.I V02
11a) Write a Program to find the length of a string. b) Write a Program to reverse words in a given sentence. c) Write a Program to check if a substring is present in a given string. d) Write a Program to count and display the number of vowels, consonants, uppercase, lowercase characters in a string.V02
12Develop Programs to perform the following list operations. a) To swap given two elements in a list. b) To find the sum of elements in a list. c) To check if an element exists in a given list. d) To find the smallest and largest element in a given list.V02
13a) Given a List saved in variable: a = [1, 4, 9, 16, 25, 36, 49, 64, 81, 100]. Write one line of Python that takes this list and makes a new list that has only the even elements of this list in it. b) Create a List containing the square of all odd numbers from range 1 to 10. c) Create a List of prime and non-prime numbers in range 1 to 50.V02
14a) Write a Program to demonstrate some useful set functions and operations. b) Write a Program to demonstrate some useful Tuple functions and operations.V02
15a) Write a Program to demonstrate the dictionaries functions and operations. b) Create a Dictionary with the roll number, name, and marks of nV02

GUJARAT TECHNOLOGICAL UNIVERSITY
#

Program Name: Diploma in Engineering
#

Level: Diploma
#

Branch: Information & Communication Technology Course / Subject Code : DI02032011
#

Course / Subject Name : Python Programming

students in a class and display the names of students who have scored marks above 75.
Total30

Underpinning Theory
#

Only the major Underpinning Theory is formulated as higher-level UOs of Revised Bloom’s taxonomy in order development of the COs and competency is not missed out by the students and teachers. If required, more such higher-level UOs could be included by the course teacher to focus on the attainment of COs and competency.

UnitUnit Outcomes (UOs) (4 to 6 UOs at Application and above level)Topics and Sub-topics
Unit - I Problem Solving using Flowchart and Algorithm1.1 Explain steps to solve a problem. 1.2 Draw flowchart of given problem based on sequence, selection, repetition. 1.3 Write pseudocode for the given problems.1.1.1 Introduction, Steps for problem- solving, Algorithm and its characteristics, Importance of flowchart and algorithm 1.2.1 Symbolic representation of a flowchart, Limitations of flowchart Flow of control 1.3.1 Problem solving using pseudocode
Unit - II Python Introduction2.1 Explain the given features and applications of python. 2.2 Install the latest version of python 2.3 Apply given keywords, identifiers, variables, data types, and operators in python programs. 2.4 Write pseudocode for the explicit and implicit type conversion.2.1.1 Introduction to python, Python features, Applications of python programming 2.2.1 Python installation 2.3.1 Basic structure of python program, Keywords, identifiers, and variables, Data types, Operators 2.4.1 Type Conversion

GUJARAT TECHNOLOGICAL UNIVERSITY
#

Program Name: Diploma in Engineering
#

Level: Diploma
#

Branch: Information & Communication Technology Course / Subject Code : DI02032011
#

Course / Subject Name : Python Programming

Unit- III Flow of Control3.1 Classify control structure. 3.2 Write pseudocode for the flow of control using different selection types. 3.3 Write pseudocode for the flow of control using different repetition types. 3.4 Implement break and continue statements in the python program.3.1.1 Introduction to Flow of Control 3.2.1 Selection - If statement - Elif statement - Nested if statement 3.3.1Repetition - For oop - While loop - Nested loop 3.4.1 Break and Continue Statements
Unit- IV Functions4.1 Write pseudocode for user- defined functions. 4.2 Apply Global and Local variable concepts in python program. 4.3 Use built-in functions and modules. -4.1.1 Introduction to Functions - User Defined Functions - Arguments and Parameters 4.2.1 Scope of a Variable - Global Variable - Local Variable 4.3.1 Python Standard Library - Built-in functions Input or output - input(), print() - Mathematical Functions abs(), divmod(), max(),min(), pow(), sum() - Module - math - random - statistics

GUJARAT TECHNOLOGICAL UNIVERSITY
#

Program Name: Diploma in Engineering Level: Diploma Branch: Information & Communication Technology Course / Subject Code : DI02032011 Course / Subject Name : Python Programming

List of Laboratory/Learning Resources Required:
#

S. No.Equipment Name with Broad SpecificationsPrO. No.
1Computer system with operating system: Windows 7 or higher Ver., macOS, and Linux, with 4GB or higher RAM, Python versions: 2.7.X, 3.6.XAll
2Python IDEs and Code Editors Open Source : IDLE, Jupyter2 to 8

Suggested Project List:
#

Only one micro-project is planned to be undertaken by a student that 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

GUJARAT TECHNOLOGICAL UNIVERSITY
#

Program Name: Diploma in Engineering
#

Level: Diploma

Branch: Information & Communication Technology Course / Subject Code : DI02032011
#

Course / Subject Name : Python Programming 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 microproject should encompass two or more COs which are in fact, an integration of PrOs, UOs and ADOs. Each student will have to maintain a dated work diary consisting of individual contributions in the project work and give a seminar presentation of it before submission. The total duration of the microproject should not be less than 16 (sixteen) student engagement hours during the course. The student ought to submit a micro-project by the end of the semester to develop the industry oriented COs.

A suggestive list of micro-projects is given here. This has to match the competency and the COs. Similar micro-projects could be added by the concerned course teacher:

  • Case Study 1: Compare three various tools functionality for python programming in the ICT domain
  • Case Study 2: List out features of latest python version and compare with older two different versions.
  • Case Study 3: Study math and random module of python and explain real life usage with examples. List their importance in Information Communication Technology