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 Modifying an Array

There is a problem here. The problem is that if you cannot answer a question you are not permitted to go forward.

I wonder who designed your system here?

The student who cannot answer a challenge question is not permitted to go forward, forcing him to retry over and over again, and finally to abandon going forward altogether. For the past TWO WEEKS I have been stuck here and not permitted to go forward. Any question that I have I make and you wont respond.

I wonder, as educators, you are aware how horrific and counterproductive your system is. You see, in the real world, when a student cannot answer a question, he can ask for help, or see the answer and go forward nonetheless. If anytime a student was not able to answer the question, he was not allowed to go forward, i'm afraid progress as we know it would have to be mended with regress.

The simple question here is quite simple: Why do you not permit the student to go forward when he gets the answer wrong and you wont even show the right answer. Moreover, questions like this are ignored by your folks at Treehouse. I wonder if you know that your system is being recommended by top educators, and I wonder if these top educators are aware of how counterproductive your system is.

A. Why wont you allow a student to go forward until he gets the answer correct?

B. Why will you not answer questions with regard to above

C. Why do you not show the answer as a guide and allow the student to continue.

I must give a very negative review of the education process at Treethouse, not only to you, but back to those who recommend Treehouse. Perhaps Lynda is a better answer. Since your system will not allow me to go forward, I had to go to them. I wonder if you are aware of how horrible your system is here and if you care enough to make the changes or just leave them here, a reflection of lack of care and diligence, system checks and balances at Treehouse. A - C dont happen in the real world. People who dont have the correct answer are given the right answer and moreover they are allowed to go forward. This is not good for your bottom line as educators. Your not doing a very good job of it are you? No, you are not. They system locks up, wont allow you to go any further, no solution is provided. Whoever designed this system needs to go back to school. I have to in turn go back to the recommenders of Treehouse and advise them why Treehouse is not the way to go. I encourage you to dot your i's and cross your T's. You most definitely are not doing it.

arrays.swift
var todo = ["Learn Swift", "Build App", "Deploy App"]
todo.append("Debut App", "Fix Bugs")

7 Answers

Stone Preston
Stone Preston
42,016 Points

the append method only takes one argument. if you want to append multiple items append an array using +=

using append()

var todo = ["Learn Swift", "Build App", "Deploy App"]
todo.append("Debug App")
todo.append("Fix Bugs")

using +=

var todo = ["Learn Swift", "Build App", "Deploy App"]
todo += ["Debug App", "Fix Bugs"]

also note that its Debug, not Debut.

you should be able to skip the challenge if you get stuck on one. you can just press the next arrow at the top right of the screen. You can move forward, you just wont get any credit for that specific challenge until you complete it. The course wont also be marked as complete until you finish the challenge you skipped.

Haha. I am aware of the Arrow. Its a very large arrow that is hard to miss. The problem is when you click on it, it actually wont let you go forward, but presents the problem again. It will only let you go forward when you've solved it.

Stone Preston
Stone Preston
42,016 Points

hmm that is not the case for me. Are you able to choose the next video (What is a dictionary?) from the main course page?

You may need to contact support. You should be able to skip the challenge. What browser are you using?

Chrome

Stone Preston
Stone Preston
42,016 Points

same here. could you view the dictionaries video from the main course page I linked?

The Go Forward Green Arrow button wont work until you get it right. You have to go back to the outline of the course and select dictionary from outline ( Go Back to go forward ).

Yes that does work.

The Go forward button however wont, until you get the answer right.

I can send you a screen cast link. It doesnt work.

Stone Preston
Stone Preston
42,016 Points

I believe you. go to this code challenge and click the next button. Does it let you skip? If so, there may be a problem with that specific challenge you were stuck on, or it could be an issue with your account

This link you just gave me, it does let you go forward.

On the Swift exercises, it consistently wont. ( I thought it was a new Policy, you are not allowed to go forward until you answer correctly)

Stone Preston
Stone Preston
42,016 Points

alright. you should Contact Support and let them know about the issues you are experiencing. It could be a bug with your account, or possibly the course. You should definitely be able to skip any part of any course, so im not sure why its not letting you skip that one. I dont think it is a new policy that you cant skip stuff. The link above to the CSS code challenge is from a course that was just released today and you were able to skip that so it does not seem to be the case

OK. So? On the Swift exercises you on your browser Can go forward if you dont get the answer correct?

Stone Preston
Stone Preston
42,016 Points

yes I can skip stuff, including the specific challenge you had an issue with. The link above that you tried and were able to skip is a challenge from a brand new course, and I was able to skip that as well so it seems like it could be an issue with your account. Its strange. your best bet is to contact support. They usually get back to you within a day.

Amit Bijlani can you confirm that you should be able to skip course content and that it is not intended for this to happen?

Amit Bijlani
Amit Bijlani
Treehouse Guest Teacher

On a course you can skip around as much as you want. However, if you don't complete all the exercises and watch all the videos then you won't be able to unlock the badge for that stage. If you are following track then you cannot unlock the next level in the track until you have completed all the courses within a given level.