Starting Out and Need Help with Basics.

Chris Angelico rosuav at gmail.com
Sat Jul 2 17:17:26 EDT 2016


On Sun, Jul 3, 2016 at 7:13 AM, CHM Lyrics <craigwahawick7 at gmail.com> wrote:
> I am in fifth year at secondary school (senior years in high school). We've been doing basic programs in Python at school, but we're now on a 6 week holiday (Summer Holidays). So I decided I would try and download Python and learn a bit more while I'm not doing anything. I have now downloaded it, however, I have immediately noticed something.
>
> For example, what I know is, is that if you were to type:
> print "Welcome to Python!"
> And nothing else, it would ask you to save the program, which I'd do, but then it just says there's an invalid syntax. I've tried adding a colon after 'print' and I've tried adding brackets around "Welcome to Python!". But nothing is working, can someone give me a hand please.
>

Did you use the right brackets? It should look like this:

print("Welcome to Python!")

ChrisA



More information about the Python-list mailing list