5.1. Mapping About

5.1.1. Value

  • identifier + scalar = value

>>> firstname = 'Mark'
>>> lastname = 'Watney'
>>> age = 44
>>> height = 185.5
>>> weight = 75.5

5.1.2. Data

value + relation = data

>>> astronaut = ('Mark', 'Watney', 44, 185.5, 75.5)

5.1.3. Information

  • data + context = information

>>> astronaut = {
...     'firstname': 'Mark',
...     'lastname': 'Watney',
...     'age': 44,
...     'height': 185.5,
...     'weight': 75.5,
... }

5.1.4. Use Case - 0x01

>>> commander = 'Melissa Lewis'
>>> botanist = 'Mark Watney'
>>> pilot = 'Rick Martinez'
>>> crew = ('Melissa Lewis', 'Mark Watney', 'Rick Martinez')
>>> crew = {
...     'commander': 'Melissa Lewis',
...     'botanist': 'Mark Watney',
...     'pilot': 'Rick Martinez',
... }