Re: [Tutor] Preparing virtualenvwrapper for Django 1.6 development

2014-08-23 Thread Chris “Kwpolska” Warrick
On Fri, Aug 22, 2014 at 11:23 PM, Sithembewena Lloyd Dube wrote: > Hi everyone, > > I am developing on a Windows 8.1 machine and wold like to setup > virtualenvironment via virtualenvwrapper so as to have a properly set up > Python development environment. > > I am referring to Jeff Knupp's guide

Re: [Tutor] Preparing virtualenvwrapper for Django 1.6 development

2014-08-23 Thread Alan Gauld
On 23/08/14 08:54, Chris “Kwpolska” Warrick wrote: Note that this blog post is HEAVILY *nix-specific, and that Windows is a bad environment for Python development (especially Web development). While I wouldn't say its the best environment I don't think its fair to say Windows is "a bad environ

[Tutor] Shorter way for a little program

2014-08-23 Thread Mimi Ou Yang
age = input("K") age = int(age) if (age == 1) or (age == 2) or (age == 3) or (age == 4): print ("LOL") else: print ("K") Is there a shorter way to do this program???___ Tutor maillist - Tutor@python.org To unsubscribe or change su

Re: [Tutor] Shorter way for a little program

2014-08-23 Thread Joel Goldstick
On Sat, Aug 23, 2014 at 10:16 AM, Mimi Ou Yang wrote: > age = input("K") > > age = int(age) > > if (age == 1) or (age == 2) or (age == 3) or (age == 4): > print ("LOL") > > else: > print ("K") > > > > Is there a shorter way to do this program??? > age = int(input("K")) if age in (1,2,

Re: [Tutor] Shorter way for a little program

2014-08-23 Thread Alan Gauld
On 23/08/14 15:16, Mimi Ou Yang wrote: age = input("K") age = int(age) if (age == 1) or (age == 2) or (age == 3) or (age == 4): print ("LOL") else: print ("K") Is there a shorter way to do this program??? Yes you could do this: print('LOL' if int(input('K')) in (1,2,3,4) else '