Python Forum
EOF error while taking input
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
EOF error while taking input
#1
Hey there!
I had been using Eclipse IDE for python for some time now but switched to Visual Studio Code with Python extension. Just to give the IDE a test run, I ran the following code:

name = input("Please enter your name: ")
print("Hello " + name + "!")
I'm pretty sure that this would run normally in Eclipse but in Visual Studio and other IDEs, it has been giving me an EOF error. I tried replacing "input" with "raw_input" (because I read that it might help), but then I get an error saying "raw_input" isn't defined.
Please help me out with this.
Thanks!
Reply


Messages In This Thread
EOF error while taking input - by ShishirModi - Sep-27-2020, 09:40 AM
RE: EOF error while taking input - by jefsummers - Sep-27-2020, 11:28 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Error in Using INPUT statement gunwaba 1 2,015 Jul-03-2022, 10:22 PM
Last Post: deanhystad
Star I'm getting syntax error while using input function in def. yecktmpmbyrv 1 1,931 Oct-06-2021, 09:39 AM
Last Post: menator01
  Pyspark SQL Error - mismatched input 'FROM' expecting <EOF> Ariean 3 47,824 Nov-20-2020, 03:49 PM
Last Post: Ariean
  Input Error Dream 2 2,397 Jul-12-2020, 05:41 PM
Last Post: bowlofred
  taking input doesnt print as list bntayfur 2 2,052 Jun-04-2020, 02:48 AM
Last Post: bntayfur
  Getting an error while using input function dcsethia 5 2,854 May-11-2020, 04:59 PM
Last Post: buran
  Taking Multiple Command Line Argument Input bwdu 6 3,921 Mar-29-2020, 05:52 PM
Last Post: buran
  catch input type error mcmxl22 5 2,967 Aug-11-2019, 07:33 AM
Last Post: wavic
  A question about subprocess taking input from command line and returning output! Aurimas 8 5,096 May-15-2019, 04:02 PM
Last Post: Aurimas
  Occasional error when taking an item off a queue Wiggy 1 2,064 Jan-19-2019, 11:22 PM
Last Post: Gribouillis

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020