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"


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

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