UPDATE Please see additional comment below original question.
I am having a bit of trouble coming up with the correct answer on number 6. Code in general is completely new to me and these courses, where as they are done well, the pace is very quick. I spent over ten hours straight on Unit 2 and homework the other day, and I'm finally coming back to it to try again. I've finally gotten further in the homework, and I know I can get this if I just keep at it.
On problem 6 of the homework, I feel like I have a valid code that should work. It's going to be a bit difficult to talk about since, I can't post code or any potential answers (though obviously my 'answer' is wrong since it isn't working). Basically I combined knowledge from Unit 2.15 and 2.25. That's the best way I can explain it without posting my code. However, when I try to print find_last('aaaa','a'), I don't get any result. I don't even get an error message. I simply get an orange pop-up box at the top that says "Try again!" What does this mean? Without any kind of code error and/or output, I don't really have anything to go off of where to correct my code.
Any assistance would be greatly appreciated. I really want to get this done before tomorrow night.
The question has been closed for the following reason "bdiddy was able to assist in the flaw of my formula on another thread. Thanks everyone! :)" by Shay 06 Mar '12, 08:14
No result, no feedback.. it sounds like you may have your indents off.
Is your print statement within the function? (it shouldn't be, but it can be if your indents are off, etc).
Also, it's possible that you have an infinite loop. Make sure you terminate your code for all possible inputs.
Do you only use the udacity interpreter, or do you have a local one?
Try again , wont be popped up in Homeworks ..
For no output , try doing a dry run ... check variable by variable ...you should get the issue with dry run!!
answered 06 Mar '12, 04:21