Answers for "python print text"

7

python print

print("Hello, World!") #Output: Hello, World!

print(5+5) # Output:10

x=10
y=11
print(x+y) #Output: 21
Posted by: Guest on March-27-2020
1

print text python

# To print text on a screen you need to use the print function
# Example:
>>> print('Hello, world!')
Hello, world!
# You can change Hello, world! to I am learning python!
>>> print('I am learning python!')
I am learning python!
# If you want to print a variable you can put the variable name
# in the function
a = 'I am text'
print(a)
I am text
# You can also print expressions like this
print(5 * 7)
35
Posted by: Guest on May-09-2021
0

how to print python text

print ("Example")
Posted by: Guest on May-27-2020
1

python print text

print("The text you want to print")
Posted by: Guest on February-12-2020

Python Answers by Framework

Browse Popular Code Answers by Language