Python Introducing Lists Using Lists Mutability

Tyler Wells
Tyler Wells
Python Web Development Techdegree Student 2,677 Points

Whats the purpose of the final line in the function: blank print()

Hi everyone, just wondering what exactly is the purpose of the final line within the function - the blank print? It comes right after the for in loop

Thanks

1 Answer

Steven Parker
Steven Parker
170,403 Points

A "print()" with no arguments will just cause the output to go to the next line.

Steven Parker
Steven Parker
170,403 Points

That way, all the lines showing items in the list are together, but there will be a blank line after them to separate them from whatever gets printed next.