Programming in Python
Get the full GTU study material, English & Gujarati textbook PDFs, syllabus curriculum, and solved previous year question papers.
English Book & Chapters
English Book Coming Soon
We are working hard to add this material. Stay tuned for updates!
Follow on Instagram for UpdatesGTU Previous Year Papers
Papers Coming Soon
We are working hard to add this material. Stay tuned for updates!
Follow on Instagram for UpdatesProgramming 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.