Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

iOS Swift Basics (retired) Control Flow Switch Statement

Kyung Park
Kyung Park
2,682 Points

The question 2 in this quiz is wrong. The question should indicate more about the output

The question should indicate that the code should print out a season that a month belongs to for each month.

1 Answer

Max Hirsh
Max Hirsh
16,773 Points

Hm, I think the question is not asking you to know what all the outputs should be, but rather is testing if you remember that switch statements need to be complete and/or include a default option. Otherwise they won't compile.

Kyung Park
Kyung Park
2,682 Points

Thank you for the answer. Maybe I missed the point you made in the question.