staircase.Stairs.number_of_steps#

property Stairs.number_of_steps: int#

Calculates the number of step changes

Returns
int

Examples

>>> s1.plot(arrows=True)
>>> s1.number_of_steps
5
../../_images/staircase-Stairs-number_of_steps-1.png
>>> s3.plot(arrows=True)
>>> s3.number_of_steps
6
../../_images/staircase-Stairs-number_of_steps-2.png