Park
0
Q:

print new line python

# For Python version 3.x
print("Hello", end = '')
print("World!")
# output:
# HelloWorld!

# For Python version 2.x
print("Hello"),
print("World!")
# output:
# HelloWorld!
11
# \n Makes A new Line.
print("Hello \n World!")
#Out Put
#Hello
# World!
#Still Counts The Space!
9
print("Hellow world!")
1
The new line character in Python is \n   print("\n")
1
The new line character is "\n". It is used inside of a string.
1
print('I\'m not close to the bottom one!\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nI\'m not close to the top one')
0
print("First Line \n" "Second Line")
1
print("Hello World\n" "This is the second line")
0
print("hello world how are you guys doing"/n"i hope you are doing well")
-1

New to Communities?

Join the community