I am trying to complete my first challenge on Google foobar challenges and I am stuck with an error which I can't seem to fix no matter what I do!
def answer(plaintext):
plaintext = raw_input('(string) plaintext = ')
answer(plaintext)
I get EOFError [line 2].
But, when I do this:
def answer(plaintext):
try:
plaintext = raw_input('(string) plaintext = ')
except(EOFError):
return
answer(plaintext)
then I get an error which says, all the test cases failed.
What's going wrong?
You are missing following:
return plaintext;
You have to return something after processing the input(s).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With