0
Q:

how to use print in python

print("hello world")
0
print('Hello, world!')
19
print("Hello World")
-1
#a string, to indicate it is a string you can use ("") or ('')
print("hello world")
#a integer 
print(19)
# a float:
print(4.5)
6
print("What you would like to print")
6
'''
print()inside the parentheses put a single colon or double colon 
'''
# example like this
print("this how you use print statement")
# or like this
print('other way to print in python')
3
# Simple Print:
print("Hello World!")

# Formatting message in python3.6- :
name = "World"
print("Hello {}!".format(name))

# Formatting message in python3.7+ :
name = "World"
print(f"Hello {name}!")
2
print('Hello, world!')

# Oh, I'm late...
2

New to Communities?

Join the community