Basics of Python

#90daysdevops

#day13

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 your System whether it is window, MacOS, ubuntu, centos etc. Below are the links for the installation:

Task1:

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

  2. What are the different Data Types in Python?

  3. Primitive :

  • Integer

    x = 20

  • Float

    x = 20.5

  • String

    x = "Hello World"

  • Boolean

    x = True

  • None

    x=None

  1. Non-primitive
  • List

    x = ["apple", "banana", "cherry"]

  • Tuple

    x = ("apple", "banana", "cherry")

  • Set

    x = {"apple", "banana", "cherry"}

  • Dictionary

    x = {"name" : "John", "age" : 36}