Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python print()

# The print() funtion in python:
print("Hello World!") # Prints Hello World to the terminal,
# with a line break afterwards.

print(65+23) # Prints 88 to the terminal, with a line break

print("There is no line break here!", end="") 
# Prints There is no line break here to the terminal, but replacing the line
# break with nothing.

# The end parameter is what to put after the text. It's default value is a "
",
# or line break
Source by trinket.io #
 
PREVIOUS NEXT
Tagged: #python
ADD COMMENT
Topic
Name
3+7 =