1print("Hello, World!") #Output: Hello, World!
2
3print(5+5) # Output:10
4
5x=10
6y=11
7print(x+y) #Output: 21
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