Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
New to Python
#1
I'm new to Python; from a tutorial I got the following lesson for beginners:
"By default, each print statement prints text in a new line. If we want multiple print statements to print in the same line, we can use the following code:"
print("hello", end="")
Print("world")

print(Hello", end=" ")
Print("World")

but when I run the code, I get the following:
helloTraceback (most recent call last):
File "D:/Python/April 21 2020/3.py", line 2, in <module>
Print("world")
NameError: name 'Print' is not defined

Can anyone guide what is the problem?
Reply


Messages In This Thread
New to Python - by simonsadiq - Apr-21-2020, 03:05 PM
RE: New to Python - by bowlofred - Apr-21-2020, 03:12 PM
RE: New to Python - by DT2000 - Apr-21-2020, 03:40 PM
RE: New to Python - by simonsadiq - Apr-21-2020, 03:40 PM

Forum Jump:

User Panel Messages

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