Welcome to the Treehouse Community
Looking to learn something new?
Nathan Noye4,370 Points
Selecting a certain item in a For In loop
I'm trying to build an app where it lists 5 or so things and outputs them to a label. Only issue is following the DRY method, I had to use a For In loop so I wouldn't be rewriting a bunch of code. My only issue is when I output this to a Label, my label on displays the bottom item. Is there a way I can make it so it displays everything as a list? for example this is what is should look like
but it appears as this
Hint: string concatenation, then assign the concatenated string to the label after the loop has run.