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) Collections What is an Array?

Every Challenge starts off great, halfway into my code I always get the Oh No! screen and start over, is this my mac?

anyone else having to restart every challenge like me? I mean its great practice re typing everything twice, but only if I'm doing it right haha

arrays.swift
var todo = ("Learn Swift","Build App","Deploy App")

2 Answers

Kyle Daugherty
Kyle Daugherty
16,441 Points

Try updating your code to use square brackets for creating the todo array instead of parens and see if that fixes it. I was getting those errors too, but it turned out that my code was incorrect.

var todo = ["Learn Swift","Build App","Deploy App"]

I didn't have a problem writing the code, I figured that out, I just keep getting the OH NO you have to restart cause the site is having communication problems, 2-3 times in each challenge. Its highly annoying

Kyle Daugherty
Kyle Daugherty
16,441 Points

Got it. You might want to contact help@teamtreehouse.com and report the issue. They're unlikely to see it here in the forum.

thanks I just shot them an email

I've been having this problem too. However, if you click outside of the alert popup it will dismiss it and your progress will still be there. Then you can try submitting again.

ill try that , thanks philip