There error message you've described is related to something that isn't in the code you've provided. For the error message, in line 1 you've made a call to tryme3a, but Python doesn't know what that means. You're missing a function definition or something similar - probably just a syntax error somewhere.
---------
For the actual code above, I get the following error message:
Print is a function - it needs () after it. More info is
here.
Code:
def three_lines():
print()
print()
print()
def nine_lines():
three_lines()
three_lines()
three_lines()
print("line 1")
nine_lines()
print("line 10")
The above code outputs:
You could also change the three_lines() function to:
Code:
def three_lines():
print("\n\n\n")
def nine_lines():
etc...