Re: [Tutor] How to print a variable from an if/else statement

2012-09-12 Thread Dave Angel
On 09/12/2012 12:38 PM, bob gailer wrote: > > > /Python has statements/./ /if // is a ///statement./So is > /def. > > What's with the attempted italics? This is a text mailing list, and the text version of your html message was thoroughly mangled. It'd be much better to just send t

Re: [Tutor] How to print a variable from an if/else statement

2012-09-12 Thread Joel Goldstick
On Wed, Sep 12, 2012 at 12:38 PM, bob gailer wrote: > Precision in terminology is good. > > Python has keywords. if, and, else are keywords. All keywords are all lower > case. > > Keywords cannot be overridden by assignment. > > Python has statements. if is a statement. So is def. > > Some keywor

Re: [Tutor] How to print a variable from an if/else statement

2012-09-12 Thread bob gailer
Precision in terminology is good. Python has /keywords./ /if, //and, //else /are /keywords. /All keywords are all lower case. Keywords cannot be overridden by assignment. /Python has statements/./ /if // is a ///statement./So is /def. ///Some keywords are part of the structure of

Re: [Tutor] How to print a variable from an if/else statement

2012-09-12 Thread Joel Goldstick
Following up on my earlier reply, ( I let the 'If' slip). Python statements are ALL lowercase. Case matters in python, so If is not if, Print is not print, Else is not else. -- Joel Goldstick ___ Tutor maillist - Tutor@python.org To unsubscribe or ch

[Tutor] How to print a variable from an if/else statement

2012-09-12 Thread Joaquim Santos
> > > > Message: 3 > Date: Wed, 12 Sep 2012 09:32:38 + > From: chrisbv...@gmail.com > To: tutor@python.org > Subject: [Tutor] How to print a variable from an if/else statement > Message-ID: > <2057338575-1347442886-cardhu_decombobulator_blackberry.ri

Re: [Tutor] How to print a variable from an if/else statement

2012-09-12 Thread Joel Goldstick
On Wed, Sep 12, 2012 at 5:32 AM, wrote: > Hello, > > I'm very new thanks in advance for your help. > > My If statement is: > > If age < (40): this will work, but python doesn't need the parentheses around the second argument. You can use it to make the logic more clear, but for a single term it

[Tutor] How to print a variable from an if/else statement

2012-09-12 Thread chrisbva81
Hello, I'm very new thanks in advance for your help. My If statement is: If age < (40): Print("you are young.") Else: Print("You look great.") Basically what I want to do is have a sentence using print that includes the results of the If or Else which is based on the users input of age.