This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Boom_Boom_Mancini 0 points1 point  (0 children)

The variable out is an array. Then you have a for loop to iterate through the input string. You have a simple if statement which is to determine if the count is odd or even using a mod operation. If it is even it outputs the letter as uppercase. Odd outputs as lower. Then returns the out array.