Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
input error help
#2
Use code tag BBcode help.

You are getting that error because you use Python 2.
Fix:
name = raw_input("Enter Name: ")
print("Hello there " + name)
But you should really use Python 3,follow Python 3.6 and pip installation under Windows.
Then it can look like this.
name = input("Enter Name: ")
print(f'Hello there {name}')
Reply


Messages In This Thread
input error help - by Cremno - Oct-21-2017, 02:23 PM
RE: input error help - by snippsat - Oct-21-2017, 02:45 PM
RE: input error help - by Cremno - Oct-21-2017, 05:26 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Error in Using INPUT statement gunwaba 1 2,128 Jul-03-2022, 10:22 PM
Last Post: deanhystad
Star I'm getting syntax error while using input function in def. yecktmpmbyrv 1 2,004 Oct-06-2021, 09:39 AM
Last Post: menator01
  Pyspark SQL Error - mismatched input 'FROM' expecting <EOF> Ariean 3 48,222 Nov-20-2020, 03:49 PM
Last Post: Ariean
  EOF error while taking input ShishirModi 1 2,618 Sep-27-2020, 11:28 AM
Last Post: jefsummers
  Input Error Dream 2 2,481 Jul-12-2020, 05:41 PM
Last Post: bowlofred
  Getting an error while using input function dcsethia 5 2,989 May-11-2020, 04:59 PM
Last Post: buran
  catch input type error mcmxl22 5 3,117 Aug-11-2019, 07:33 AM
Last Post: wavic
  inserting input gives me error message RubberNuggets 3 2,623 Jan-15-2019, 06:17 PM
Last Post: buran
  an input error or elif error , how can i fix this the_fire_pharaoh 1 2,376 Dec-15-2018, 09:47 PM
Last Post: Gribouillis
  Getting Error : User Input aankrose 1 3,024 Sep-06-2018, 04:55 PM
Last Post: buran

Forum Jump:

User Panel Messages

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