Python Islands 5 if-elif not working
In Python Islands 5 all works until you get to the if-elif portion in the Computer Science area. I'm proficient in Python, have checked all syntax, but not working.
I also suggest teaching about having an "else" as a fall-through, and that addition does not work either. I did try the explicit answer given in the teacher handout as well. Seems to be a glitch in the background.
-
Official comment
HI everyone! Thanks for your patience. Python Islands bugs have been repaired and will be available in the in-game library next week.
-
Uh oh, let's see if we can get this problem nailed down. Would it be too much trouble for you to post a screenshot of what's happening, or a few more details of the actual step that you're in? For me to find the error and double check it on my computer I have to do the whole Python Islands experience myself to get there, and I don't want to miss the spot.
Thanks so much for reporting this. We are better together.0 -
Here you go, thanks for the quick response. The previous steps build the learner up to learning functions, the previous step just included an "if" within the function, this is the first "elif". The next step AFTER this one includes 3 "elif" options. I think you could start Island 5 without doing the previous 4, and this is the second activity.
0 -
I deleted the Islands 5 world, restarted it. Nothing was working, no text showing, etc., but I added an "else" to my statements, and they worked. Not sure what data that the world was giving to my code, but the else handled it (as it's designed to do). So, not sure what numbers it's giving, and maybe they want to add an "else" as default earlier in the lesson.
0 -
Same thing on our end. We get to the elif and it says we did not define a number. Even tried exactly what is in the teacher hand out. Very frustrating for students and myself.
0 -
Andrew Mulholland Laylah Bulman
I'm sorry for the trouble. I think some of these worlds have been updated in the upcoming Beta, but I will leave the experts on these worlds to chime in for you.
0 -
These bugs have been addressed, and the improved world will be available soon. Thank you so much for pointing these out. We are on it and rely on you to make it better.
0 -
Popping in to ask about the Python Island 4 glitch in the diamond sorting task. I'm testing each island before the kids and I see that there is an issue. Is there a work-around? The kids are enjoying the series so far and I'd hate to interrupt their progress through the islands. Thanks!
0 -
Same problem here with the diamond sorting. I really want to use this series, but this makes it hard.
In python Island 3 the books finding quest is also bugged.0 -
We found a solution to the diamond sorting by using a seemingly random set of if else statements.
Sorting Diamonds
** You will be writing a very long string of code BEFORE hitting RUN. About 40 lines long. And it doesn’t match the lesson**
Write this once-
while agent.inspect(“forward”) ==”diamond”:
mark_diamond()
else:
mark_diamond()
Highlight this and copy it. Change‘mark_diamond’ to ‘mark_bin’ Then copy this 5x. Copy it and paste it 5 times.
while agent.inspect(“forward”) ==”diamond”:
mark_diamond()
else:
mark_bin()
Highlight the first set of code again and paste it once again-
while agent.inspect(“forward”) ==”diamond”:
mark_diamond()
else:
mark_diamond()
Then copy the second set and copy/paste this 2x.
while agent.inspect(“forward”) ==”diamond”:
mark_diamond()
else:
mark_bin()
Write this one last time-
while agent.inspect(“forward”) ==”diamond”:
mark_diamond()
else:
mark_diamond()
(So 1 mark_diamond, 5 mark_bin, 1 mark_diamond, 2 mark_bin, 1 mark_diamond, )
**NOW RUN THE CODE**
The Botanical Gardens are also difficult. We had to position our agents directly above each poppy then agent.destroy("down") We ended up having to skip Island 5 bc none of us could figure out a work around to the elif errors. I'm currently working through the bugs of Island 6...
0 -
Thank you so much for the hard work and the clear instructions. I was able to pass this. It is so unfortunate that Python Island is riddled with bugs because i love every part that does work. But this is just too many bugs... You can't learn this way. I hope they go through it soon and fix the issues. But I'm doubtful... I would love to use this in my classroom.
0 -
Wow! I love to see the community trying to solve a problem together. I have not been using this world so will have to go back and see what's up.
0 -
This is still broken. I've been working with my students to try and figure out how to bypass it. From what I can find it is giving the wrong data. It appears to be handing "Z" every time instead of going alphabetically.
The problem comes in that it keeps handing the exact same data and expecting different results each time. Given that it is a function I'm not sure how to increment it to beat the checks.0
Please sign in to leave a comment.
Comments
13 comments