An enumerated type has an order

Complete the previous lesson to unlock this one.

Back to the path

An enumerated type has an order

Level 2: Types. Spring, Summer, Autumn, Winter is a TYPE, not four strings. Adding 1 moves to the next value in the list.

ThisSeason is Spring. The program prints Spring.

Change the OUTPUT so it prints the next season. Adding 1 walks the list in the order it was written. Do not write the string "Summer".