Jn Liv
0
Q:

print python 3

print("whatever you want to print")
20
# This is a print statement
print("Hello, world!")
26
print("Hello World")
-1
# To print a string...
print("I am a string yay")

# To print an answer to an equation...
print(5+5)

# To print the answer of previously defined variables...
x = 50
n = 30
print(x + n)

# Notes:
# You can't add a string to a number.
x = "foo"
n = 50
print(x + n)
# That will come up with an error.
11
print('Hello, world!')
19
print("This is sparta")
5
print("Hello, World!") #Output: Hello, World!

print(5+5) # Output:10

x=10
y=11
print(x+y) #Output: 21
7
a = 3
print(a)
1
print("this is the print function!")
2

New to Communities?

Join the community