Answers for "why is print in python giving text:"

2

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

Code answers related to "why is print in python giving text:"

Python Answers by Framework

Browse Popular Code Answers by Language