Day-13 Python Basics for DevOps Engineers


TABLE OF CONTENTS
🅿️What is a python
Python is a popular high-level, interpreted programming language known for its simplicity, readability, and versatility. It was created by Guido van Rossum and first released in 1991. Python supports multiple programming paradigms, including object-oriented, imperative, and functional programming styles
it is easy to learn and understandable it's a very easy language.
Python has a simple syntax similar to the English language.
It is used for:
web development (server-side),
software development,
mathematics,
system scripting.
Key features of Python include:
Readable and Expressive Syntax: Python's syntax emphasizes readability and uses indentation to delimit code blocks, making it easy for programmers to understand and maintain the code.
Dynamic Typing: Python is dynamically typed, which means you don't need to specify the data type of variables explicitly. The type is inferred at runtime.
Interpreted Language: Python code is executed line by line by an interpreter, which allows for rapid development and easy debugging.
Large Standard Library: Python comes with a comprehensive standard library that provides many modules and packages for common tasks, such as working with files, networking, databases, and more.
Multi-paradigm: Python supports various programming styles, such as procedural, object-oriented, and functional programming.
Platform Independence: Python is a cross-platform language, meaning that code written in Python can be executed on different operating systems without modification.
Open Source: Python is an open-source language, and its community actively contributes to its development, creating a vast ecosystem of libraries and frameworks.
python has an extension is "py" When we want to save the file we can save the file with .py
COPY
COPY
hello.py
🐍How to Install Python?
You can install Python in your System whether it is Windows, MacOS, ubuntu, centos etc.
💻Windows Installation
Task1:
Install Python in your respective OS, and check the version.
COPY
COPY
sudo apt-get update
COPY
COPY
Sudo apt-get install python3
To check the Python version
COPY
COPY
python3 -- version
Task2:
📑Read about different Data Types in Python.
In Python, data types have a hierarchical relationship, where some types are considered more general or inclusive, while others are more specific or specialized. The hierarchy of Python data types can be illustrated as follows:
There is a different types of data types in Python
Numeric:
integer
float
complex number
Dictionary, Boolean, Set
Sequence type
String
list
tuple
✨Conclusion
Congratulations! You've completed Day 13 of the #90DaysOfDevOps challenge. In this blog post, we covered Python we learned what is python how to install Python on your pc what is the use Python and what data types in Python stay tune to new this type of blog to enhance your development journey. 🚀💻.
So I encourage you to try this on your own and let me know in the comment section about your learning experience
Thank you for reading!
Subscribe to my newsletter
Read articles from Gokul Bodake directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by

Gokul Bodake
Gokul Bodake
Red Hat Certified System Administrator - RHEL9.0 | Learning | AWS ( Aamazon Web Service ) + DevOps ..