Day 13: Basics of Python

What is Python?

  • Python is an Open source, general-purpose, high-level, and object-oriented programming language.

  • Python is a computer programming language often used to build websites and software, automate tasks, and conduct data analysis

  • 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 window, MacOS, ubuntu, centos etc. Below are the links for the installation:

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

Read about different Data Types in Python.

Below are a few built-in Data types in Python:

  1. Integers: Integers, or int for short, are whole numbers with no decimal point. They can be positive, negative, or zero.

  2. Floating-point numbers: Floating-point numbers, or float for short, are numbers with a decimal point. They can also be positive, negative, or zero.

  3. Strings: Strings, or str for short, are sequences of characters enclosed in quotation marks (either single or double). They can contain any combination of letters, numbers, and symbols.

  4. Booleans: Booleans, or bool for short, are values that can be either True or False. They are often used in conditional statements and logical operations.

  5. Lists: Lists are ordered collections of values, which can be of any data type. They are enclosed in square brackets and separated by commas.

  6. Tuples: Tuples are similar to lists, but they are immutable, meaning that their contents cannot be changed once they are created. They are enclosed in parentheses and separated by commas.

  7. Dictionaries: Dictionaries are collections of key-value pairs, where each key is associated with a corresponding value. They are enclosed in curly braces and separated by commas.

  8. Sets: Sets are collections of unique values, meaning that each value can only appear once in the set. They are enclosed in curly braces and separated by commas.

    \===========================***==============================

    Will appreciate your feedback :) #90daysofdevops

    linkedin.com/in/sweety-samya-963859130

    Happy learning!-