Answers for "python for print"

4

how to print something in python

print("hello guys")
Posted by: Guest on August-18-2020
16

python print

# 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.
Posted by: Guest on April-14-2020
-1

python for print

print()
Posted by: Guest on December-05-2020

Python Answers by Framework

Browse Popular Code Answers by Language