Python Forum
Absolute beginner am I missing something?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Absolute beginner am I missing something?
#3
(Sep-25-2020, 02:11 AM)bowlofred Wrote: If this is cut&pasted properly, it should give an error when run. Python names are case-sensitive, and your print function is capitalized.

When I run this, it generates an error. I can't see any reason that the program wouldn't accept the input and continue on after you hit Return.

Output:
what is your nameBob Traceback (most recent call last): File "caps.py", line 2, in <module> Print ("thank you " + name) NameError: name 'Print' is not defined

sorry I do have it as
name = input("What is your name ")
print("thank you " + name)
when I hit return it just jumps to the next line as if it was in a text document
Reply


Messages In This Thread
RE: Absolute beginner am I missing something? - by kamren - Sep-25-2020, 02:26 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Absolute paths in subprocess - file not found kittyticker 4 519 Jan-28-2024, 10:37 PM
Last Post: kittyticker
  automatically get absolute paths oclmedyb 1 2,133 Mar-11-2021, 04:31 PM
Last Post: deanhystad
  chkFile with absolute paths JarredAwesome 7 3,030 Sep-21-2020, 03:51 AM
Last Post: bowlofred
  absolute imports between folders mikisDW 0 1,561 Aug-05-2020, 12:26 PM
Last Post: mikisDW
  I am an absolute newbie.Help me! feynarun 4 2,548 Apr-11-2020, 09:25 PM
Last Post: feynarun
  Absolute newbie asking for help with blinking LEDs misterfrickel 0 2,084 Mar-15-2019, 08:54 AM
Last Post: misterfrickel
  Absolute Beginner Python Question matchamochi7 5 3,707 Nov-02-2018, 12:09 PM
Last Post: wookie
  Absolute Beginner to Python dthomp54 5 3,148 Oct-09-2018, 03:00 AM
Last Post: dthomp54
  Problem with absolute path to file (Mr.Stickman Problems) SheeppOSU 3 6,270 Jun-26-2018, 10:05 AM
Last Post: Larz60+
  coding error from a script (absolute noob) fuchls 2 3,947 Jun-08-2018, 02:29 PM
Last Post: webrunner1981

Forum Jump:

User Panel Messages

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