Skip to main content

Command Palette

Search for a command to run...

Day 15 - Basics of Python for DevOps Engineers

Updated
2 min readView as Markdown
Day 15 - Basics of Python for DevOps Engineers
G

👋 Hey there! I'm Gayatri, I have completed a degree in Computer Engineering. I am extensively involved in the fields of DevOps and Cloud computing.

⭐What is Python?

  • Python is a 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 all operating system like Linux, Ubuntu, Windows & MacOS.

Installation of Python in Linux:

  1. Update the package index: It's a good practice to update the package index before installing any new packages:
  sudo apt update #For Ubuntu/ Debian
  1. Install Python: You can install Python using the package manager:
  sudo apt install python3 #For Ubuntu/Debian
  sudo yum install python3 #For CentOS/RHEL
  1. Verify the Installation: After installation, you can verify that Python was installed successfully by running:
  python3 --version

⭐Data Types in Python

Python Data Types are used to define the type of a variable. It defines what type of data we are going to store in a variable. The data stored in memory can be of many types. For example, a person's age is stored as a numeric value and his or her address is stored as alphanumeric characters.

Python has the following built-in data types -

Data TypeExamples
Numericint, float, complex
Stringstr
Sequencelist, tuple, range
Binarybytes, bytearray, memoryview
Mappingdict
Booleanbool
Setset, frozenset
NoneNoneType

More from this blog

Untitled Publication

43 posts