0% found this document useful (0 votes)
26 views

Python

This document provides an overview of the Engineering Computation laboratory (EC-lab) at the National Institute of Technology, Warangal. It outlines various topics that will be covered in the lab including arithmetic operations, arrays/matrices, basic plotting, and an introduction to Python programming. Links are provided to online Python courses and a tool for practicing Python online. The bulk of the document consists of slides on different programming concepts like variables, operators, conditions, functions, and exercises related to these topics.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
26 views

Python

This document provides an overview of the Engineering Computation laboratory (EC-lab) at the National Institute of Technology, Warangal. It outlines various topics that will be covered in the lab including arithmetic operations, arrays/matrices, basic plotting, and an introduction to Python programming. Links are provided to online Python courses and a tool for practicing Python online. The bulk of the document consists of slides on different programming concepts like variables, operators, conditions, functions, and exercises related to these topics.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 47

Engineering Computation laboratory (EC-lab)

Dr. Veera Venkata Nagaraju,


(postdoc)
Code: ME-153

Department of Mechanical Engineering,


National Institute of Technology, Warangal
– 506 004, Telangana, India.
Contents

• Arithmetic operations

• Array or matrix operations

• Simple plots

• Python basics for ENGG.

https://www.coursera.org/learn/python?specialization=python (online course)

https://colab.research.google.com/ (practice python online)

2
Declaration

3
Arithmetic's

4
Arithmetic's

5
Arithmetic's

6
Arithmetic’s (relational)

7
Declaration

8
Operators

9
Operators

10
Operators (Decisions T/F)

11
Conditions (simple if else condition)

12
Conditions (simple if else condition)

13
Operators (in/ not in)

14
conditions

15
conditions

16
Conditions (program in python for Grades of marks) using function def

17
conditions def

18
Arrays & Matrices

19
Arrays & Matrices

20
Arrays & Matrices

21
Arrays & Matrices

22
Arrays & Matrices

23
Arithmetic’s & Conditions (Exercise)

24
Arithmetic’s & Conditions (Exercise)

25
Vectors & Conditions (Exercise)

26
Exercise answers

27
Exercise answers

28
Exercise answers (def)

29
Exercise

30
Exercise

31
Plots

32
Plots

33
Exercise

34
Exercise

35
Exercise

36
Exercise

37
Exercise

38
Exercise

39
Exercise

40
Exercise

41
Exercise

42
Exercise

43
Exercise

44
Exercise

45
Exercise

46
47

You might also like