I was so hyped to solve this without any help

I have been going-through the Python syllabus for about 3 days and I am at the “Learning about Loops” section. We had added lists to lists on a few of the topics and I was wondering how I could interlace 2 lists. Anyway, after about an hour of staring at the screen and trying different things, I figured it out. Here is the code I wrote:

students_period_A = [“Alex”, “Briana”, “Cheri”, “Daniele”]
students_period_B = [“Dora”, “Minerva”, “Alexa”, “Obie”]

index = 0
for student in students_period_A:
students_period_B.insert(index, student)
index += 2


This was the output:
[‘Alex’, ‘Dora’, ‘Briana’, ‘Minerva’, ‘Cheri’, ‘Alexa’, ‘Daniele’, ‘Obie’]

I know its not a massive achievement but I refused to Google, ChatGPT or use anything, I just starred at the screen and iterated (pun intended) my brain cells until I got the answer.


But, you’re wrong. It is a massive achievement.
You are learning and understanding core coding concepts. Every new thing you learn is building a foundation. Good for you!

Also, it’s okay to google documentation in order to understand how things work. Personally, I wouldn’t rely on ChatGPT so much though.

If you can explain what your code is doing to a duck, then it’s all good.

Happy coding!

1 Like

That’s incredible! It’s the best when you can solve something or answer your own question by experimenting with the code.

It makes me feel good and helps my confidence in making the decision to take up web development at 32 :joy:.

It’s important to celebrate your achievements and acknowledge the hard work you’ve been putting in.