As part of an assignment, I've been trying to create a function which will create n new lines—but I can't figure out for the life of me how to fix this error.
Here's the code snippet:
def newLines(lines):
for i in lines:
print()
print("This is a string")
newLines(2)
print("This is also a string")
..which returns:
TypeError: 'int' object is not iterable