I am really enjoying myself learning Python3. But now i seem to have hit a brick wall and cannot find a way around it.
I have been practicing the little i know of python3 with a simple little script called "practice.py" as follows:
Which returned the following:
Billy
John
Peter
Simon
Kevin
Flushed with success i decided to add another name to the list "a":
Could some one help me out here please.
I have been practicing the little i know of python3 with a simple little script called "practice.py" as follows:
Code:
#!/usr/bin/env python3
#
practice = ["Billy", "John", "Peter", "Simon", "Kevin"]
print(*practice, sep='\n')
Which returned the following:
Billy
John
Peter
Simon
Kevin
Flushed with success i decided to add another name to the list "a":
Code:
f = open("lpthw/practice.py", "a")
When i try to go to the second line i recieve an error of "Invalid syntax"
Could some one help me out here please.