Skip to main content

Python Data Types

#Data Type GroupData Type
011. NumericInteger [ int(<value>) ]
> print(type(9))
NOTE: Character length depends on device memory.
  Unlimited precision.
021. NumericFloating [ float(<value>) ]
> print(type(9.))
031. NumericComplex [ complex(<value>) ]
> print(type(9+0j))
042. BooleanBoolean [ bool(<value>) ]
> print(type(True))
053. SetSet [ set((<value>, <value>)) ]
> print(type({9}))
064. MappingDictionary [ dict((<key>=<value>, <key>=<value>)) ]
> print(type({9:9}))
075. SequenceString [ str(<value>) ]
> print(type(\"9\"))
085. SequenceList [ list((<value>, <value>)) ]
> print(type([9]))
095. SequenceTuple [ tuple((<value>, <value>)) ]
> print(type((9,)))