matrix.Matrix.add_choices

Matrix.add_choices(*choices)

Add items to choose from into the matrix.

Parameters

*choices (str) – Competiting items to choose from.

Examples

>>> import matrix
>>> m = matrix.Matrix()
>>> m.add_choices('apple', 'orange')
>>> m
|:-------|
| Weight |
| apple  |
| orange |