Data Types in Python

Basic datatypes in python 

To store numerical values : int, float, complex

To store string values : str

To store boolean values : bool

You can get the datatype of a variable by using the type()
    x = 5
    y = "Funda of Web IT"

    print(type(x))
    print(type(y))

The output for the above code will be :
<class 'int'>
<class 'str'>

© Copyright - 2018 - 2021 | All rights reserved at Funda of Web IT