Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #110964

Re: Starting Out and Need Help with Basics.

From Chris Angelico <rosuav@gmail.com>
Newsgroups comp.lang.python
Subject Re: Starting Out and Need Help with Basics.
Date 2016-07-03 07:17 +1000
Message-ID <mailman.29.1467494255.2295.python-list@python.org> (permalink)
References <18f1fc40-e6f5-4bfe-8601-746c7b826c66@googlegroups.com> <CAPTjJmrhzbMwZ=Y2Pwn65rWc=dVrW8FQTNf9C3-tEQ0wb0inEQ@mail.gmail.com>

Show all headers | View raw


On Sun, Jul 3, 2016 at 7:13 AM, CHM Lyrics <craigwahawick7@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

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Starting Out and Need Help with Basics. CHM Lyrics <craigwahawick7@gmail.com> - 2016-07-02 14:13 -0700
  Re: Starting Out and Need Help with Basics. Chris Angelico <rosuav@gmail.com> - 2016-07-03 07:17 +1000

csiph-web