Programming in Python

GTU Study
KHUDKIBOOK
PROGRAMMING IN PYTHON DI04020041
FREE PDF DI04020041
Code: DI04020041 Credits: 4 Semester 4 Production

Programming in Python

Get the full GTU study material, English & Gujarati textbook PDFs, syllabus curriculum, and solved previous year question papers.

Programming in Python Syllabus — Unit-wise Content

The official GTU curriculum for Programming in Python (subject code DI04020041) as prescribed for Production · Semester 4 divides the course into 5 units, covering 45 listed topics. The unit-wise breakdown below is read from the GTU syllabus document for this subject code, so you can check what the course actually covers before deciding which papers to attempt.

Download the official syllabus PDF (DI04020041)

Unit 1 Basic Concepts and Problem Solving using Flowchart and Algorithm

  • 1.1. Introduction, Steps for problem-solving, Algorithm and its characteristics, Importance of algorithm.
  • 1.2. Symbolic representation of a flowchart, Importance and Limitations of flowchart, Flow of control
  • 1.3. Problem solving using pseudocode

Unit 2 Fundamentals Of Python Programming

  • 2.1. Fundamentals of python, key features of Python, Common Applications of python programming
  • 2.2. Python Installation
  • 2.3. Basic structure of python program, Python Comments, Keywords, identifiers, variables, Data types, and Operators.
  • 2.4. Type Conversion: Need, Built in conversion etc.

Unit 3 Flow of Control

  • 3.1. Introduction to Flow of Control
  • 3.2. Selection If statement Elif statement Nested if statement
  • 3.3. Repetition For loop While loop Nested loop
  • 3.4. Break and Continue Statements

Unit 4 Functions and Python Standard Library

  • 4.1. Introduction to Functions ● User Defined Functions ● Arguments and Parameters
  • 4.2. Scope of a Variable ● Global Variable ● Local Variable
  • 4.3. Python Standard Library ● Built-in functions ● Input or output - input() , print() ● Mathematical Functions - abs(), divmod(), max(), min(), pow(), sum()
  • 10. 20 GUJARAT TECHNOLOGICAL UNIVERSITY Program Name: Diploma Engineering Level: Diploma Branch: Mechatronics Engineering Subject Code : DI04020041 Subject Name : Programming in Python w.e.f. 2025-26 http://syllabus.gtu.ac.in/ Page 4 of 8 ● Module - math, random, statistics

Unit 5 Python Data Structures

  • 5.1. Introduction to Strings
  • 5.2. String Methods and Built-in Functions
  • 5.3. Introduction to Lists and List Operations
  • 5.4. List Methods and Built-in Functions
  • 5.5. Introduction to Set, Tuple and Dictionary
  • 11. 23 SUGGESTED PRACTICAL EXERCISES:- The following practical outcomes (PrOs) are the sub-components of the COs. Some of the PrOs marked ‘*’ are compulsory, as they are crucial for that particular CO at the ‘Precision Level’ of Dave’s Taxonomy related to ‘Psychomotor Domain’. Sr. No. Practical Outcomes (PrOs) Unit Approx. Hrs. required 1. Study of problem-solving steps and algorithm development. Write algorithms for simple problems (addition, average, largest number). Draw flowcharts for basic problems using standard symbols. Convert given algorithms and flowcharts into pseudocode. I 04*
  • 2. Study of Python environment, installation, and execution of Python programs. II 02
  • 3. Write a Python program to display "Hello World" and basic output formatting. II 02
  • 4. Write Python programs using variables, keywords, identifiers, and data types. II 02
  • 5. Write Python programs demonstrating arithmetic, relational, and logical operators. II 02
  • 6. Write Python programs demonstrating type conversion (implicit and explicit). II 02
  • 7. Write a Python program using if statement. III 02
  • 8. Write a Python program using if–else statement. III 02
  • 9. Write a Python program using nested if statement. III 02
  • 10. Write Python programs using for loop. III 02 GUJARAT TECHNOLOGICAL UNIVERSITY Program Name: Diploma Engineering Level: Diploma Branch: Mechatronics Engineering Subject Code : DI04020041 Subject Name : Programming in Python w.e.f. 2025-26 http://syllabus.gtu.ac.in/ Page 5 of 8
  • 11. Write Python programs using while loop. III 02
  • 12. Write Python programs using nested loops. III 02
  • 13. Write Python programs demonstrating break and continue statements. III 02
  • 14. Write a Python program to define and call a user-defined function. IV 02
  • 15. Write Python programs using functions with arguments and return values. IV 02
  • 16. Write Python programs demonstrating global and local variables. IV 02
  • 17. Write Python programs using built-in functions input() and print(). IV 02
  • 18. Write Python programs using mathematical functions such as abs(), max(), min(), pow(), and sum(). IV 02
  • 19. Write Python programs using standard library modules math, random, and statistics. IV 02
  • 20. Write Python programs demonstrating string operations. V 02
  • 21. Write Python programs using string methods and built-in functions. V 02
  • 22. Write Python programs demonstrating list creation and list operations. V 02
  • 23. Write Python programs demonstrating set creation and set operations. V 02
  • 24. Write Python programs using tuple creation, accessing, and slicing. V 02
  • 25. Write Python programs demonstrating dictionary creation and basic operations. V 02 * Suggested to cover 3 to 4 programs from Unit II, III, IV and V from the given above list. Total (Hours) 30 NOTES:- I. More Practical Exercises can be designed and offered by the concerned course teacher to develop the industry-relevant skills/outcomes to match the COs. The above table is only a representative list. GUJARAT TECHNOLOGICAL UNIVERSITY Program Name: Diploma Engineering Level: Diploma Branch: Mechatronics Engineering Subject Code : DI04020041 Subject Name : Programming in Python w.e.f. 2025-26 http://syllabus.gtu.ac.in/ Page 6 of 8 II. It is compulsory to prepare log book/continuous records of exercises. It is also required to get each exercise recorded in log book/continuous records, checked and duly dated signed by teacher. CA component of practical marks is dependent on continuous and timely evaluation of exercises. III. Term work report must not include any photocopy/ies, printed manual/pages, litho, etc. It must be hand written / hand drawn by student only. a. Brief details of industry visited. b. Type, location, products, rough layout, human resource, etc., of industry. c. Details, description and broad specifications of machineries/processes observed. d. Safety norms and precautions observed. e. Student’s own observation on industrial environment, productivity concepts, quality consciousness and quality standards, cost effectiveness, culture and attitude. f. Any other details/ observations asked by accompanying faculty. IV. For practical ESE part, students are to be assessed for competencies achieved. They should be assigned the necessary data and should be given any one experience to perform. The following are some sample 'Process' and 'Product' related skills (more may be added/deleted depending on the course) that occur in the above-listed Practical Exercises of this course required, which are embedded in the COs and, ultimately, the competency.  SUGGESTED SPECIAL INSTRUCTIONAL STRATEGIES (if any) In the subject Programming in Python for Mechatronics Engineering, instructors shall emphasize the thorough understanding of fundamental concepts, principles, and practical applications. To facilitate this, simple illustrative problems should be presented in class, complemented by structured tutorial exercises designed to progressively develop students' comprehension of core principles. Classroom instruction shall, wherever feasible, be reinforced through live demonstrations and hands-on laboratory sessions utilizing various Python IDEs and code editors.

Study on Android App:

Download Khudkibook on Google Play Store

More Subjects in Semester 4

GTU Study
KHUDKIBOOK
MANUFACTURING ENGINEERING - 3341901
FREE PDF 3341901

Manufacturing Engineering - ii

Code: 3341901 Credit: 7
Open →
GTU Study
KHUDKIBOOK
THEORY OF MACHINES 3341903
FREE PDF 3341903

Theory Of Machines

Code: 3341903 Credit: 6
Open →
GTU Study
KHUDKIBOOK
METROLOGY & INSTRUMENTATION 3341905
FREE PDF 3341905

Metrology & Instrumentation

Code: 3341905 Credit: 8
Open →
GTU Study
KHUDKIBOOK
PLANT MAINTENANCE AND 3341906
FREE PDF 3341906

Plant Maintenance And Safety

Code: 3341906 Credit: 5
Open →
GTU Study
KHUDKIBOOK
CONTROL DEVICES 3342001
FREE PDF 3342001

Control Devices

Code: 3342001 Credit: 7
Open →
GTU Study
KHUDKIBOOK
ESSENCE OF INDIAN 4340001
FREE PDF 4340001

Essence of Indian Knowledge and Tradition

Code: 4340001 Credit: 2
Open →
GTU Study
KHUDKIBOOK
CONTRIBUTOR PERSONALITY DEVELOPMENT 4340002
FREE PDF 4340002

Contributor Personality Development

Code: 4340002 Credit: 2
Open →
GTU Study
KHUDKIBOOK
INTEGRATED PERSONALITY DEVELOPMENT 4340003
FREE PDF 4340003

Integrated Personality Development Course

Code: 4340003 Credit: 2
Open →
GTU Study
KHUDKIBOOK
MEASUREMENTS AND METROLOGY 4341902
FREE PDF 4341902

Measurements and Metrology

Code: 4341902 Credit: 4
Open →
GTU Study
KHUDKIBOOK
MANUFACTURING ENGINEERING - 4341904
FREE PDF 4341904

Manufacturing Engineering - II

Code: 4341904 Credit: 4
Open →
GTU Study
KHUDKIBOOK
PLANT MAINTENANCE AND 4341906
FREE PDF 4341906

Plant Maintenance and safety

Code: 4341906 Credit: 1
Open →
GTU Study
KHUDKIBOOK
CONTROL DEVICES 4342001
FREE PDF 4342001

Control Devices

Code: 4342001 Credit: 3
Open →
GTU Study
KHUDKIBOOK
HYDRAULIC AND PNEUMATIC 4342002
FREE PDF 4342002

Hydraulic and Pneumatic System

Code: 4342002 Credit: 3
Open →
GTU Study
KHUDKIBOOK
BASIC OF C 4342003
FREE PDF 4342003

Basic of C Programming

Code: 4342003 Credit: 3
Open →
GTU Study
KHUDKIBOOK
ENTREPRENEURSHIP & START-UP DI04000081
FREE PDF DI04000081

Entrepreneurship & Start-up

Code: DI04000081 Credit: 3
Open →
GTU Study
KHUDKIBOOK
ARTIFICIAL INTELLIGENCE AND DI04000161
FREE PDF DI04000161

Artificial Intelligence and Prompt Engineering

Code: DI04000161 Credit: 3
Open →
GTU Study
KHUDKIBOOK
MANUFACTURING ENGINEERING - DI04000241
FREE PDF DI04000241

Manufacturing Engineering - II

Code: DI04000241 Credit: 4
Open →
GTU Study
KHUDKIBOOK
DESIGN OF MACHINE DI04000251
FREE PDF DI04000251

Design of Machine Elements

Code: DI04000251 Credit: 4
Open →
GTU Study
KHUDKIBOOK
TOTAL QUALITY MANAGEMENT DI04000281
FREE PDF DI04000281

Total Quality Management

Code: DI04000281 Credit: 4
Open →
GTU Study
KHUDKIBOOK
INDUSTRY 4.0 DI04000291
FREE PDF DI04000291

Industry 4.0

Code: DI04000291 Credit: 3
Open →
GTU Study
KHUDKIBOOK
COMPUTER AIDED GRAPHICS DI04020011
FREE PDF DI04020011

Computer Aided Graphics

Code: DI04020011 Credit: 3
Open →
GTU Study
KHUDKIBOOK
PRODUCTION & OPERATIONS DI04020021
FREE PDF DI04020021

Production & Operations Management

Code: DI04020021 Credit: 4
Open →
GTU Study
KHUDKIBOOK
BASICS OF C DI04020031
FREE PDF DI04020031

Basics of C Programming

Code: DI04020031 Credit: 4
Open →
GTU Study
KHUDKIBOOK
PROGRAMMABLE LOGICAL CONTROLLERS DI04020051
FREE PDF DI04020051

Programmable Logical Controllers

Code: DI04020051 Credit: 4
Open →