unit

property Length.unit: str

Symbol of the unit of measurement for length. It must be a str. Available units are:

  • 'm' for meter,

  • 'dm' for decimeter,

  • 'cm' for centimeter,

  • 'mm' for millimeter.

Returns

str

Symbol of the unit of measurement for length.

Raises

TypeError

If unit is not a str.

KeyError

If the unit is not among available ones.