Backpack Mistake explainer


#43

Thank you for your explanation.
Now I get it!


#44

Still wrong? Could you please give me some help?
Thanks


#45

Hey @Jciveira,

You’re experiencing a bug. If you hard close grasshopper, then re-open and run this code again you should solve this puzzle.

We’re working on fixing this issue, sorry you’ve run into it!
H :slight_smile:


#46

Thanks @Grasshopper_Heather!! I was about to start crying and I forgot the basic rule of IT

main-qimg-281eb8ff31d687a0efffd3551ae0a309-c


#47

The task is phrased in a confusing way that is throwing most people away from the solution not the code. We need to see that the code for the contents of the otherBackpack array already exists. Please don’t hide it from us otherwise we will try to create it (and of course we can’t and we don’t need to).


#48

Did I get this right? I didn’t get a big red box, so I’m thinking I did…but I didn’t get a Congrats either! :crazy_face:


#49

By jove, I think I got it!


#50

Tried for an hour to shove crackers, chocolate, and rasins into someone else’s backpack when they were already there lol.


#51

Hey @Christopher_Hansen,

I think you win my favorite comment on this thread. Rest assured we are working to improve this lesson so future coders don’t try to pack someone elses bag!

H :slight_smile:


#52

Hey hii,


I couldn’t proceed forward with this code…
Thank you,…


#53

Should we create a variable with other backpack? Add items into it. Then use the for loop to look for the food items? Can someone help?


#54

Would be nice if you mentioned this at the puzzle :wink:


#55

Agreed! I spent so long trying to build the array, and being convinced there was a bug because we just didn’t have the tools.


#56

Hey @Trilok_chander,

You are 99% of the way there, you just misspelled one for the properties. It’s equipment rather then equipmemt.

H :slight_smile:


#57

Hey @Emosewa,

You don’t need to create the variable otherBackpack. There is additional code that runs before your code runs (you can see it now included in the explainer).

To solve this puzzle you need to create a for loop and print out all the items held within the food property of otherBackpack.

Hope this helps!
H :slight_smile:


#58

@Ton_Akveld — we’re working on it! H :slight_smile:


#59

How is this wrong


#60


#61

Great! Thanks for your reply.

Kind regards,

Ton


#62

Hi did same but no result is coming