print text python

Solutions on MaxInterview for print text python by the best coders in the world

showing results for - "print text python"
Libbie
20 Oct 2016
1# To print text on a screen you need to use the print function
2# Example:
3>>> print('Hello, world!')
4Hello, world!
5# You can change Hello, world! to I am learning python!
6>>> print('I am learning python!')
7I am learning python!
8# If you want to print a variable you can put the variable name
9# in the function
10a = 'I am text'
11print(a)
12I am text
13# You can also print expressions like this
14print(5 * 7)
1535