Skip to content

Latest commit

 

History

History
122 lines (67 loc) · 4.14 KB

clkq2lppk000009l78uqwadt2.md

File metadata and controls

122 lines (67 loc) · 4.14 KB
title datePublished cuid slug cover ogImage tags
Day-13 Python Basics for DevOps Engineers
Sun Jul 30 2023 23:26:25 GMT+0000 (Coordinated Universal Time)
clkq2lppk000009l78uqwadt2
day-13-python-basics-for-devops-engineers
python, devops, 2articles1week, 90daysofdevops

🅿️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:

  1. 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.

  2. 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.

  3. Interpreted Language: Python code is executed line by line by an interpreter, which allows for rapid development and easy debugging.

  4. 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.

  5. Multi-paradigm: Python supports various programming styles, such as procedural, object-oriented, and functional programming.

  6. Platform Independence: Python is a cross-platform language, meaning that code written in Python can be executed on different operating systems without modification.

  7. Open Source: Python is an open-source language, and its community actively contributes to its development, creating a vast ecosystem of libraries and frameworks.

  8. python has an extension is "py" When we want to save the file we can save the file with .py

    hello.py

🐍How to Install Python?

You can install Python in your System whether it is Windows, MacOS, ubuntu, centos etc.

Task1:

Install Python in your respective OS, and check the version.

sudo apt-get update
Sudo apt-get install python3

To check the Python version

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:

![Python Data Types – PYnative](https://pynative.com/wp-content/uploads/2021/02/python-data-types.jpg align="left")

There is a different types of data types in Python

Numeric:

  1. integer

  2. float

  3. complex number

Dictionary, Boolean, Set

Sequence type

  1. String

  2. list

  3. 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!

Thank You! Stay Connected ☁️👩‍💻🌈

Contact me at :

linkedin: linkedin.com/in/akash-singh-48689a176

E-mail: [email protected]