So i got this right but i still have a hard time i feel understanding how these for loops work exactly. I think i understand whats happening in this code but was wondering if someone could help a noob in Python like me grasp a better understanding of whats really happening. Basically I want to get a solid foundation on how these for loops work exactly? Everytime I think I have the answer it turns out I dont and I have to spend time figuring it out. I think the problem though is that I dont fully understand what the code is doing. Thanks in advance.
n = ["Michael", "Lieberman"] # Add your function here def join_strings(words): result = "" for i in range(len(words)): result += words[i] return result print join_strings(n)