Python
for
Mechanical
Engineers
Python is an interpreted, high- level, general- purpose programming language. Python strives for a simpler, less-cluttered syntax and grammar while giving developers a choice in their coding methodology. Rather than having all of its functionality built into its core, Python was designed to be highly extensible. This compact modularity has made it particularly popular as a means of adding programmable interfaces to existing applications.
Introduction
-
A basic introduction to programming languages in general.
-
Installation of python interpreter.
-
Environment setup for python projects.
Data types:
-
Types of data
-
Syntax
-
Hello World
Python Operators:
-
Arithmetic operator
-
Logic operators
-
Bitwise operators
Data Structures:
-
Difference between Data type and Data structures.
-
List
-
Tuple
-
Dictionary
Conditional Statements:
-
If , else and elif statements
-
Nested if statements
Loop statements:
-
For loop
-
While loop
-
Break statement
Functions:
A function is a block of code which only runs when it is called. You can pass data, known as parameters, into a function. A function can return data as a result.
-
Default parameter
-
Input parameter
-
Return value
Arrays:
Arrays are used to store multiple data in single variables.
Class:
-
Introduction to OOP (Object Oriented Programming)
-
Class Vs Function
-
Python dunders
MatplotLib Library:
-
Installation
-
Sample programming
Otto cycle:
-
Introduction to Otto cycle
-
Coding Otto cycle in Python
-
Output results using Matplotlib library
Stirling cycle:
-
Introduction to Stirling cycle
-
Coding Stirling cycle in Python
-
Output results using Matplotlib library
Four Bar mechanicsm:
-
Introduction to Four bar mechanism
-
Real world examples of FBM (Four bar mechanism)
-
Coding FBM in Python
-
Output results using Matplotlib library