Module: (Python) Printing text to the screen


Problem

1 /5


Hello, World!

Theory Click to read/hide

In the module "Let's get acquainted" we had a program that looked like this

print("Hello, World!") 
This program outputs the text Hello, World!
The text will be outputed without quotation marks.
Thus, to output something on the screen, a built-in command is used (function, operator) - print 
In quotation marks, the text for output is written - that is, some character string
As required by Python, there should be no spaces at the beginning of a line
Text can be written not in quotation marks, but in apostrophes (single quotation marks), for example
print('Hello, World!') 
Using quotes is convenient if you need to display the quotes themselves on the screen.
For example:
print('Read the book "Programming for Everyone"!') 
REMEMBER
To output something, use the operator print()
In parentheses, write what we display, write character strings in quotation marks or apostrophes
3 We do not put spaces at the beginning of the line before the print command!

Let's practice displaying something on the screen!

Problem

Write a program that outputs
Everybody loves kittens