Bottom Page

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

SyntaxError: unexpected EOF while parsing

    return a*2
double_word("fun")
I am a total beginner.I use Jupyter Notebook. Why does it not work?

Thank you for answer

wowo
Quote
#2
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 - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures

Quote
#3
Hallo,

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
Quote
#4
class klaus:

Quote

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  float multiplication - unexpected output inesk 3 128 Dec-11-2018, 10:59 AM
Last Post: DeaD_EyE
  Unexpected result eftimios 1 144 Dec-02-2018, 07:39 AM
Last Post: Gribouillis
  pdb says "SyntaxError: unexpected EOF" on comment pwannh 1 124 Nov-29-2018, 04:17 PM
Last Post: nilamo
  Unexpected error Tzikos 1 159 Nov-12-2018, 04:06 PM
Last Post: Larz60+
  IndentationError: unexpected indent salahhadjar 2 264 Nov-04-2018, 06:10 PM
Last Post: salahhadjar
  SyntaxError: unexpected EOF while parsing donmerch 2 553 Oct-15-2018, 05:12 AM
Last Post: wavic
  Unexpected twice output Samo 3 234 Sep-29-2018, 10:00 PM
Last Post: Samo
  Unexpected simpy simulation output bakas 1 297 Sep-07-2018, 01:14 AM
Last Post: scidam
  unexpected output for global variable bhdebasish 1 296 Aug-22-2018, 04:55 PM
Last Post: Larz60+
  Unexpected Results for Selection Sort emerger 2 303 Jul-28-2018, 02:19 PM
Last Post: emerger

Forum Jump:


Users browsing this thread: 1 Guest(s)