dan at tombstonezero.net
Tue Jan 3 13:07:04 EST 2017
On Wed, 04 Jan 2017 16:40:00 +1100, Steven D'Aprano wrote:
> On Wednesday 04 January 2017 15:46, Deborah Swanson wrote:
>> Steven D'Aprano wrote, on January 03, 2017 8:04 PM
>>> Of course you have to put quotes around them to enter them in
>>> your source code.
>>> We don't expect this to work:
>>> print(Hello World!)
>>> you have to use a string literal with quotes:
>>> print('Hello World!')
>>> Same for all of the above.
>> I didn't try printing them before, but I just did. Got:
>> SyntaxError: invalid syntax (arrow pointing at the colon)
> You missed the part where I said you have to put them in quotes.
ObPython: "When I've got these antlers on I am dictating and when I take them
off I am not dictating." :-)
More information about the Python-list