Python Forum
Newbie help with simple script written for v3.3 and used on vs2.7, please?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Newbie help with simple script written for v3.3 and used on vs2.7, please?
#1
Hi
Im a complete newbie to any sort of programming so sorry if this is a stupid question - working my way through the python for absolute beginers on you tube and Im on Video2. Have got python running from cmd and using notepad++ for editor.  Code reads    
print("hello world")     
myName = input("what is your name?")     
print(myName)
above runs fine outputting
Output:
hello world what is your name?
Video shows typing your name after the ?  (no space)  pressing enter key and then name should print  however I get an error message basically saying Name error Name Paul is not defined. 
I think video uses v3.3 and Im on 2.7 dont know if that makes a difference but any help welcome.  Thanks for reading.
Thanks
Paul
Reply


Messages In This Thread
Newbie help with simple script written for v3.3 and used on vs2.7, please? - by PaulMorrey - Dec-08-2016, 07:29 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Simple Python script, path not defined dubinaone 3 2,824 Nov-06-2021, 07:36 PM
Last Post: snippsat
  Need help creating a simple script Nonameface 12 4,846 Jul-14-2020, 02:10 PM
Last Post: BitPythoner
  Simple text to binary python script gmills13 2 2,907 Feb-04-2020, 08:44 PM
Last Post: snippsat
  Newbie needs help with a simple program feynarun 3 2,428 Jan-15-2020, 01:17 PM
Last Post: DeaD_EyE
  I am a newbie.Help me with this simple piece of code feynarun 3 2,940 Jan-08-2020, 12:40 PM
Last Post: perfringo
  Made a simple script for android (really simple) but it is not running anddontyoucomebacknomore 2 2,477 Mar-06-2019, 12:19 AM
Last Post: anddontyoucomebacknomore
  Newbie Ubuntu script problem Kloontor 6 3,678 Sep-24-2018, 03:51 PM
Last Post: Kloontor
  Simple script that seems to misbehave? Nwb 1 2,422 Jun-10-2018, 05:30 AM
Last Post: Nwb
  First time with Python.. need help with simple script shakir_abdul_ahad 7 5,742 May-06-2018, 09:28 AM
Last Post: killerrex
  help with a simple script juanb007 4 3,812 May-01-2018, 08:06 PM
Last Post: ThiefOfTime

Forum Jump:

User Panel Messages

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