01 | 1. Numeric | Integer [ int(<value>) ] |
| | > print(type(9)) |
| | NOTE: Character length depends on device memory. |
| | Unlimited precision. |
02 | 1. Numeric | Floating [ float(<value>) ] |
| | > print(type(9.)) |
03 | 1. Numeric | Complex [ complex(<value>) ] |
| | > print(type(9+0j)) |
04 | 2. Boolean | Boolean [ bool(<value>) ] |
| | > print(type(True)) |
05 | 3. Set | Set [ set((<value>, <value>)) ] |
| | > print(type({9})) |
06 | 4. Mapping | Dictionary [ dict((<key>=<value>, <key>=<value>)) ] |
| | > print(type({9:9})) |
07 | 5. Sequence | String [ str(<value>) ] |
| | > print(type(\"9\")) |
08 | 5. Sequence | List [ list((<value>, <value>)) ] |
| | > print(type([9])) |
09 | 5. Sequence | Tuple [ tuple((<value>, <value>)) ] |
| | > print(type((9,))) |