Dec-23-2017, 06:35 PM
Ok so i´m new to coding and have ZERO experience in this...I am reading a book i found online and i am trying to do some of the activties that are shown in the book. I am using pycharm to test my coding. The code i am writing is as follows.
>>> def print_lyrics():
... print "lumber jacks"
... print "im a sleep"
...
File "<input>", line 2
print "lumber jacks"
^
SyntaxError: Missing parentheses in call to 'print'
The book says "to end the function, you have to enter an empty line ( this is not necessary in a script)."
I understand that the three dots means that the definition is not complete...so how do i complete the freakin thing???
I just want to define lyrics as lumberjacks and im a sleep, right...thats what im trying to do??
This has got to be a simple misunderstanding...
Link of book >>> http://www.greenteapress.com/thinkpython...hap01.html
Im on chapter 3 functions 3.5 section
thank you for reading and hope that made sense.
>>> def print_lyrics():
... print "lumber jacks"
... print "im a sleep"
...
File "<input>", line 2
print "lumber jacks"
^
SyntaxError: Missing parentheses in call to 'print'
The book says "to end the function, you have to enter an empty line ( this is not necessary in a script)."
I understand that the three dots means that the definition is not complete...so how do i complete the freakin thing???
I just want to define lyrics as lumberjacks and im a sleep, right...thats what im trying to do??
This has got to be a simple misunderstanding...
Link of book >>> http://www.greenteapress.com/thinkpython...hap01.html
Im on chapter 3 functions 3.5 section
thank you for reading and hope that made sense.