
from collections import namedtuple

Substance = namedtuple('Substance', 'name alias')
Measurement = namedtuple('Measurement', 'substance unit performed value')
Result = namedtuple('Result', 'measurements substances units station_alias')


from collections import namedtuple

Substance = namedtuple('Substance', ('name', 'alias'))
Measurement = namedtuple('Measurement', ('substance', 'unit', 'performed',
                                         'value'))
Result = namedtuple('Result', ('measurements', 'substances', 'units',
                               'station_alias'))

Use tuple in namedtuples initization
Use tuple in namedtuples initization

  
  from collections import namedtuple
  
- Substance = namedtuple('Substance', 'name alias')
+ Substance = namedtuple('Substance', ('name', 'alias'))
- Measurement = namedtuple('Measurement', 'substance unit performed value')
+ Measurement = namedtuple('Measurement', ('substance', 'unit', 'performed',
+                                          'value'))
- Result = namedtuple('Result', 'measurements substances units station_alias')
+ Result = namedtuple('Result', ('measurements', 'substances', 'units',
+                                'station_alias'))
  
Use tuple in namedtuples initization
## Code Before:

from collections import namedtuple

Substance = namedtuple('Substance', 'name alias')
Measurement = namedtuple('Measurement', 'substance unit performed value')
Result = namedtuple('Result', 'measurements substances units station_alias')

## Instruction:
Use tuple in namedtuples initization
## Code After:

from collections import namedtuple

Substance = namedtuple('Substance', ('name', 'alias'))
Measurement = namedtuple('Measurement', ('substance', 'unit', 'performed',
                                         'value'))
Result = namedtuple('Result', ('measurements', 'substances', 'units',
                               'station_alias'))
