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 Collections and Control Flow Control Flow With Conditional Statements Working With Logical Operators

Help, I don't know how to do the task :(

I honestly do not know how to do this challenge. Please help me

1 Answer

Joel Martin
Joel Martin
2,799 Points

Hey Oscar, if you have no idea how to attack the challenge, I would advise rewatching the videos. Sometimes watching the videos with the challenge in mind can help you find the tools needed to complete it.

I can also direct you to the documentation you would need to complete the challenge : https://developer.apple.com/library/content/documentation/Swift/Conceptual/Swift_Programming_Language/BasicOperators.html

(To help a little, you need the "Remainder Operator", "Comparison Operators", and "Logical Operators").

If you try some code that you think could have worked, but doesn't, you can get back here so we can help you correct it.