Re: [Tutor] difference between expressions and statements

2014-04-10 Thread bob gailer
On 4/10/2014 5:48 PM, Jared Nielsen wrote: Thanks for the thorough answer, Bob. I now understand the difference. Thanks for the ACK. It helps me remember I have something to contribute. ___ Tutor maillist - Tutor@python.org To unsubscribe or change

Re: [Tutor] difference between expressions and statements

2014-04-10 Thread Jared Nielsen
Thanks for the thorough answer, Bob. I now understand the difference. On Apr 10, 2014 2:11 PM, "bob gailer" wrote: > Caveat: I began this before there were any other responses. So this may be > overkill - but I ike to be thorough. > > On 4/9/2014 12:49 PM, Jared Nielsen wrote: > >> Hi Pythons, >>

Re: [Tutor] difference between expressions and statements

2014-04-10 Thread bob gailer
Caveat: I began this before there were any other responses. So this may be overkill - but I ike to be thorough. On 4/9/2014 12:49 PM, Jared Nielsen wrote: Hi Pythons, Could someone explain the difference between expressions and statements? I know that expressions are statements that produce a

Re: [Tutor] difference between expressions and statements

2014-04-09 Thread Dave Angel
Jared Nielsen Wrote in message: > Hi Pythons, > Could someone explain the difference between expressions and statements? > I know that expressions are statements that produce a value. > I'm unclear on functions and especially strings. > Are any of the following expressions? > > print(42) > print(

Re: [Tutor] difference between expressions and statements

2014-04-09 Thread Ben Finney
Jared Nielsen writes: > Could someone explain the difference between expressions and > statements? For general programming terminology, the Wikipedia articles tend to be good. https://en.wikipedia.org/wiki/Expression_%28computer_science%29> https://en.wikipedia.org/wiki/Statement_%28computer_sc

Re: [Tutor] difference between expressions and statements

2014-04-09 Thread Alan Gauld
On 09/04/14 17:49, Jared Nielsen wrote: Hi Pythons, Could someone explain the difference between expressions and statements? I know that expressions are statements that produce a value. Yep, that's it. I'm unclear on functions and especially strings. Unclear in what way? Both functions and

Re: [Tutor] difference between expressions and statements

2014-04-09 Thread Danny Yoo
> Could someone explain the difference between expressions and statements? > > I know that expressions are statements that produce a value. Yes, that's pretty much it. If you can point your finger at the thing and say that it produces a value, it's an expression. > Are any of the following expr

[Tutor] difference between expressions and statements

2014-04-09 Thread Jared Nielsen
Hi Pythons, Could someone explain the difference between expressions and statements? I know that expressions are statements that produce a value. I'm unclear on functions and especially strings. Are any of the following expressions? print(42) print("spam") spam = 42 print(spam) Is the first examp