I’m working on a Python project where I need to print the contents of a file using a for
loop, but I’m stuck on an issue that’s preventing me from earning full points, I need 13 in total. Here’s the code I have (see attachment). Can anyone help me figure out what I might be missing?
Can you print the output of the grader.
Your issue is with this task:
In 4 lines of code:
1.) Create a list called colors containing red, yellow, blue, green, and purple
2.) print the length of colors
3.) Using a for loop, print out each color
It’s not seeing your array of colors, which could just be a spacing issue. Try removing any spaces.
I got it thanks, turns out it was the spacing as you said. appreciate it!
1 Like
In the real world, spacing is not as important, Python is forgiving.
1 Like