Skip to content

3.6 Common Data Types Summary

Common Data Types

  • Numeric types int and float

Untitled.png

  • Sequence and mapping types

Untitled%201.png

List Example

my_list = [10, 'abc']

Tuple Example

my_tuple = (1, "Hello", 3.4)

Set Example

num1 = set([1, 2, 3])

Set Literal Example

my_set = {1.0, "Hello", (1, 2, 3)}