...

Web Technologies - PYTHON

Back to Course

Lesson Description


Lession - #264 Python Datatypes


Data types are the classification or categorization of data items. It represents the kind of value that determines what operations can be performed on a particular data. Since everything is an object in Python programming, data types are actually classes and variables are example (object>
of these classes.

Following are the standard or built-in data type of Python:

  • Numeric
  • Sequence Type
  • Boolean
  • Set
  • Dictionary


  • Let's see an example

    
    
    # Python program to 
    # demonstrate numeric value
      
    a = 5
    print("Type of a: ", type(a>
    >
    b = "abc" print("\nType of b: ", type(b>
    >
    c = 2 + 4j print("\nType of c: ", type(c>
    >

    Output


    Try it here