Question: Python 2.7 What is my error? codingground Execute Python Online (Python v2.7.13) Fork & Project - Edit- 1.li Result w Execute > Share main.py STDIN

Python 2.7 What is my error?

Python 2.7 What is my error? codingground Execute Python Online (Python v2.7.13)

codingground Execute Python Online (Python v2.7.13) Fork & Project - Edit- 1.li Result w Execute > Share main.py STDIN 1- def ispalindrome (string): string = string. Lower 1st = list(string) low = 0 high = len(1st)-1 while(low main() File "main.py", line 14, in main string = raw_input("Enter string: ") EOFError: EOF when reading a line Covo 13. def maino: string - raw_input("Enter string: ") 15 - if(isPalindrome (string)): print(string,"is a palindrome") 17. else: print(string,"is NOT a palindrome") main()

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

The error youre encountering EOFError EOF when reading a line typically occurs when rawinput is used ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!