Introduction to Python Programming
Information about the Upcoming Live Meeting on Discord
How to Join the Discord Support Forum
What is Python and Example Applications in Industry
Python Installation
Installing the Visual Studio Code Editor
Setting Up VSCode for Python Coding
First Program ‘Hello World in Python’
Exercise: print(‘Introduce Yourself in the ControlByte Community’)
How to Download and Open Python Files for the Course?
Displaying Data in Python – Introduction
Basics of Displaying in CMD Console print(“AC Voltage”)
Displaying Text and Numbers print(“Current”, 20.5, “A)
Readable Message Formatting print(“-” * 42)
Python Interpreter and Newline Character print(“\n”)
Changing the Separator print(“PLC, HMI, sep=” — “)
Line End Parameter print(“Sensor: OK, end=”…”)
Task: Industrial Machine Startup Message
Comments in Python According to PEP8
Python Comments – Introduction
How to Download Python Programs for the Comments Module?
Single-line Comments and Docstrings
Python PEP8 PDF Guide
Task: Machine Review – Add Comments
Solution: Added Comments to Machine Review
Data Types and Variables in Python
Download Python Programs for Variables
Basic Types: int, float, str, bool
How to Name Variables According to PEP8 Standard
Calculations with Variables power = voltage * current
Assigning Multiple Variables current, voltage, power = 10, 20, 30
Task: Production Line Monitoring
F-STRINGS – Professional Text Formatting in Python
Arithmetic, Logical, and Comparison Operators
Input
Conditional Statements IF, ELIF, ELSE
Loops and Iterations
Lists
Lists (copy)
Tuples
Dictionaries
Project: Processing Machine Alarm Priorities
Functions
Project: Electric Motor Diagnostics
Files and Modules
Project: Logging and Measurement Analysis
Project: PLC Data Analyzer – Logging, Data Processing, User Interface, CSV/HTML Report
Bonus: Downloading and Processing Data from Siemens PLC
Removing Elements from a List – remove(), pop(), del