# Python Basics for DevOps Engineers😎

## **📚 Introduction**

Let's Start with the Basics of Python as this is also important for DevOps engineers to build the logic and Programs.

## 🐍 What is Python?

Python is an Open source, general-purpose, high-level, and object-oriented programming language. it was created by Guido van Rossum Python consists of vast libraries and various frameworks like Django, Tensorflow, Flask, Pandas, Keras, etc.

## 💻 How to Install Python?

You can install Python in your System whether it is Windows, MacOS, ubuntu, centos, etc. Below are the links for the installation:

* [**Windows Installation**](https://www.python.org/downloads/)
    
* Ubuntu: apt-get install python3.6
    
* Centos: yum install python3
    

## 🔢 Task 1: Install Python in your respective OS and check the version

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1692791101846/99c10ac5-419c-44e2-ad51-aebd4118fbb7.png align="center")

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1692791399041/c8fba648-092d-4ded-90c2-56da87a82896.png align="center")

## 📚 Task 2: Read about Different Data Types in Python

Data types represent the type of value that a variable can hold.

<table><tbody><tr><td colspan="1" rowspan="1"><p>Text Type:</p></td><td colspan="1" rowspan="1"><p><code>str</code></p></td></tr><tr><td colspan="1" rowspan="1"><p>Numeric Types:</p></td><td colspan="1" rowspan="1"><p><code>int</code>, <code>float</code>, <code>complex</code></p></td></tr><tr><td colspan="1" rowspan="1"><p>Sequence Types:</p></td><td colspan="1" rowspan="1"><p><code>list</code>, <code>tuple</code>, <code>range</code></p></td></tr><tr><td colspan="1" rowspan="1"><p>Mapping Type:</p></td><td colspan="1" rowspan="1"><p><code>dict</code></p></td></tr><tr><td colspan="1" rowspan="1"><p>Set Types:</p></td><td colspan="1" rowspan="1"><p><code>set</code></p></td></tr><tr><td colspan="1" rowspan="1"><p>Boolean Type:</p></td><td colspan="1" rowspan="1"><p><code>bool</code></p></td></tr><tr><td colspan="1" rowspan="1"><p>Binary Types:</p></td><td colspan="1" rowspan="1"><p><code>bytes</code>, <code>bytearray</code>, <code>memoryview</code></p></td></tr><tr><td colspan="1" rowspan="1"><p>None Type:</p></td><td colspan="1" rowspan="1"><p><code>NoneType</code></p></td></tr></tbody></table>
