rhiannon3
0
Q:

how to use print statement in python

print("hello world")
0
#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
'''
print - > this is a statement
use brackets and quotation marks ("") or ('')
whatever you want to say put in the brackets
'''
print("Hello World")
4
A print funtion is a way to print data in the console
use:
print("Hello World")
x = "Hello World"
print(x)
x = 5 + 5
print(str(x))
1
print("The text you want")
1
string_to_print = "Hello World"
print(string_to_print)
0
#for print statements :

print(12345677890) # Integers
print(1234.567890) # Floats
print("hello") # Strings
     or
print('hello')

print(False) # Boolean
0
s = "Let's Run This Code"
print(s)
0

New to Communities?

Join the community