Table of contents
- Hi 👋there,
- Now we are on the Day 13 task
- (Basics of Python)
- What is Python?
- Features of Python
- Easy to Learn and Use
- Interpreted Language
- Cross-platform Language
- Free and Open Source
- Object-Oriented Language
- GUI Programming Support
- Integrated
- Task1:
- Installing Python step by step: Check out the below link for Install Python in your respective OS, and check the version.
- [https://www.digitalocean.com/community/tutorials/install-python-windows-10 ]
- 2. Read about different Data Types in Python.
- Numbers:
- Strings:
- Boolean:
- Tuples:
- Lists:
- Sets:
- Dictionaries:
Hi 👋there,
Now we are on the Day 13 task
(Basics of Python)
Checkout the below link for Day 13 task:
https://github.com/LondheShubham153/90DaysOfDevOps/blob/master/2023/day13/tasks.md
What is Python?
Python is a popular programming language. It was created by Guido van Rossum, and released in 1991.
It is used for:
web development (server-side),
software development,
mathematics,
system scripting.
Python is a high-level, general-purpose programming language with an elegant syntax that allows programmers to focus more on problem-solving than on syntax errors. One of the primary goals of Python Developers is to keep it fun to use. Python has become a big buzz in the field of modern software development, infrastructure management, and especially in Data Science and Artificial Intelligence. Most recently, Python has risen to the top 3 list of the TIOBE index of language popularity. Python is becoming increasingly ubiquitous, but you must be wondering why Python has become such a hot topic in the developers’ world.
Features of Python
Python provides lots of features that are listed below.
Easy to Learn and Use
Python is easy to learn and use compared with other programming languages. It is a developer-friendly and high-level programming language.
Interpreted Language
Python is an interpreted language because no need for compilation. This makes debugging easy and thus suitable for beginners.
Cross-platform Language
Python can run equally on different platforms such as Windows, Linux, Unix and Macintosh etc. So, we can say that Python is a portable language.
Free and Open Source
The Python interpreter is developed under an open-source license, making it free to install, use, and distribute.
Object-Oriented Language
Python supports object-oriented language and concepts of classes and objects come into existence.
GUI Programming Support
Graphical user interfaces can be developed using Python.
Integrated
It can be easily integrated with languages like C, C++, JAVA etc.
Task1:
Installing Python step by step: Check out the below link for Install Python in your respective OS, and check the version.
[https://www.digitalocean.com/community/tutorials/install-python-windows-10 ]
2. Read about different Data Types in Python.
Data types are the classification or categorization of data items. It represents the kind of value that tells what operations can be performed on a particular data. In Python, several built-in data types can be used to store and manipulate different types of data. The most common data types in Python are:
Numbers:
There are three types of numeric data types in Python: integers, floats, and complex numbers.
a = 66 integer
b = 6.14 float
c = 3 + 2j complex number
Strings:
A string is a sequence of characters, enclosed in quotes (either single or double quotes).
a = ‘Hello, python!’ single quotes
b = “From today onward I am learning python.” double quotes
Boolean:
A Boolean data type is a binary data type that can have only two values, True or False.
a = True
b = False
Tuples:
A tuple is similar to a list, but it is immutable, meaning that its elements cannot be changed once it is created.
random_tuple = (16, ‘Mango’, 2.14, True)
Lists:
A list is a collection of ordered and mutable elements that can be of different data types.
random_list = [16, ‘python’, 2.14, True]
Sets:
A set is an unordered collection of unique elements.
unorder_set = {1, 2, 3, 4}
Dictionaries:
A dictionary is an unordered collection of key-value pairs, where each key is associated with a value.
unordered_dict = {‘name’: ‘python’, ‘age’: 1991, ‘place’: ‘Netherlands’}
Please, feel free to drop any questions in the comments below. I would be happy to answer them.
If you find this post helpful😊🙂, please follow and click the heart❤❤ button below to show your support.
_ Thank you for reading
_sandhya kumari