[Tutor] how Convert this Bash command into Python: Have a nice day

Alan Gauld alan.gauld at yahoo.co.uk
Tue Nov 17 03:58:00 EST 2020


On 17/11/2020 01:59, Marco Pareja wrote:
> Why is wrong with this command 
>  Print (“Have a nice day”) ?

On the surface I'd say it has a capital P in print() it
has to be lower case. Also it has question marks instead
of quotes.

But I suspect that may be errors introduced by the email
system and what you actually have is so-called "smart quotes"
around the text instead of vanilla plain text quotes. This
often happens if you use a word processor to write the text.
Unfortunately smart quotes are different characters from
plain quotes and so Python doesn't recognize them.


-- 
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos




More information about the Tutor mailing list