01_python_fundamentals
01_python_fundamentals
● Education
○ HCM University of Science
● Experience
○ Database Reliability Engineer (DRE) at Axon
○ DevOps Engineer for a Germany payment-
solution company.
○ Formerly working as Software Engineer at
Teko. Tu Doan
● Certifications:
Python – a Programming Language
● Easy to learn.
● Lightweight and Reliable
● Fastest growing programming language
● Large community
● Flexibility
Python in DevOps
3 Easy, simple and powerful language Tough to write and not powerful as python.
4 Designed for web and app development. Found on Linux distributions and macOS.
6 Require third-party programs to be installed Does not require third-party apps/programs to be installed
7 Better to use when script is larger than 100 lOC. For smaller script Bash is good.
Installation
● Windows:
○ https://www.python.org/downloads/release/python-3107/
● Linux:
○ sudo apt-get update
○ sudo apt-get install python 3.10
● MacOS:
○ brew install python
● Check for version
○ python --version
First code
Operators
● Naming rules:
○ Cannot use hyphens (-), spaces, and special characters ($,’,”,…)
○ Cannot start with number, e.g “1var”
● Assign value of a variable by using =
Function