Bottom Page

Thread Rating:
  • 4 Vote(s) - 2.75 Average
  • 1
  • 2
  • 3
  • 4
  • 5
unexpected EOF
def double_word(a):

SyntaxError: unexpected EOF while parsing

    return a*2
I am a total beginner.I use Jupyter Notebook. Why does it not work?

Thank you for answer

Please use python and output tags when posting code and results. I put them in for you this time. Here are instructions for doing it yourself next time.

I can't see anything wrong with your code as posted. It would help if you could post your full code and separately post the full text of the error message.
Craig "Ichabod" O'Brien -
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures


thank you for answering. This the full code! I think there is something wrong in the Jupyter Notebook
because with the editor "spyder" it works. Is there anything to do after the installation of anconda?
The full error Message ist :
File "<ipython-input-1-44a61c79c9fa>", line 1
def double_word(a):
SyntaxError: unexpected EOF while parsing
class klaus:


Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  Dictionary adds an unexpected list erina 1 110 Mar-14-2019, 01:13 PM
Last Post: ichabod801
  unexpected EOF while parsing whatloop 3 135 Mar-09-2019, 06:59 PM
Last Post: whatloop
  Unexpected round behavior pythonCoder 1 92 Feb-19-2019, 02:39 PM
Last Post: marienbad
  Unexpected expected type error result MartinMaker 1 119 Feb-16-2019, 05:02 PM
Last Post: micseydel
  Unexpected ininite loop behavior RedSkeleton007 4 127 Jan-27-2019, 05:32 PM
Last Post: aakashjha001
  unexpected sub result after overloading operator jolinchewjb 1 139 Jan-24-2019, 08:23 AM
Last Post: buran
  float multiplication - unexpected output inesk 3 217 Dec-11-2018, 10:59 AM
Last Post: DeaD_EyE
  Unexpected result eftimios 1 227 Dec-02-2018, 07:39 AM
Last Post: Gribouillis
  pdb says "SyntaxError: unexpected EOF" on comment pwannh 1 195 Nov-29-2018, 04:17 PM
Last Post: nilamo
  Unexpected error Tzikos 1 248 Nov-12-2018, 04:06 PM
Last Post: Larz60+

Forum Jump:

Users browsing this thread: 1 Guest(s)