Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

6
  • What is peoplePositions? Commented Oct 5, 2020 at 23:46
  • It's the people's index positions. Commented Oct 5, 2020 at 23:46
  • It would help if your code defined all variables. There are many ways to interpret a description of a variable. But if you actually define it in the code, then there is no chance for us to get it wrong. Commented Oct 5, 2020 at 23:48
  • oh, sorry! I just missclicked the code. Now it's correct. Commented Oct 5, 2020 at 23:50
  • Also, I do not understand the final comment the output would be "Johnny". This code has no print statements, so there is no output. Where are you expecting "Johnny" to come from? Commented Oct 5, 2020 at 23:53