On 28 Oct 2010, at 15:21, Dan Ross wrote:
> if x == 'red' or 'green' or 'blue':
>
> if x == 'red' or 'green' or 'blue':
I think your logic might need straightening here, you're saying
if (x == 'red')
or
if 'green'
or
if 'blue'
but I think you mean
if (x == 'red')
Thank you for your help guys.
Zach, I appreciate the explanation. That's what I was looking for.
Dan
Part 3
Description: boundary/apple-mail-7-733662729
___
Pythonmac-SIG maillist - Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pyt
On 10/28/10 12:04 AM, BjornJohansson wrote:
Apple does not allow you to run their os on non-apple hardware which means
that it is next to impossible to create mac executables without apple
hardware legally?
yes that is true. If you aren't worried about legality, you could run
OS-X on a "hackin
I have attached a copy of the originally-posted Python code and also have
attached an IDLE session based on that code, which seems instructive.
(Copying and pasting the IDLE session into the email message seems to mess
up the indentation.)
But Zachary's suggestions for rewriting the original Python
On Oct 28, 2010, at 11:08 AM, Ronald Oussoren wrote:
On 28 Oct, 2010, at 16:21, Dan Ross wrote:
I don't think this is Mac specific, but I wonder if someone could
explain why these two groups of code behave differently:
[code]
colors = ['red', 'green', 'blue', 'orange', 'fuscia', 'black',
On 28 Oct, 2010, at 16:21, Dan Ross wrote:
> I don't think this is Mac specific, but I wonder if someone could explain why
> these two groups of code behave differently:
>
> [code]
>
> colors = ['red', 'green', 'blue', 'orange', 'fuscia', 'black', 'white']
>
> list_of_matches = []
> for x in
I don't think this is Mac specific, but I wonder if someone could
explain why these two groups of code behave differently:
[code]
colors
= ['red', 'green', 'blue', 'orange', 'fuscia', 'black',
'white']
list_of_matches = []
for x in colors:
if x == 'red' or 'green'
or 'blue':
list_of_matche
Hi, and thanks for all the answers.
What I wanted to do is distribute a small python app that depends on wx and
a few other dependencies.
I have a computer running ubuntu 10.04 and I need to distrubute the app to
my students who run windows (and do not have python or know how to work the
comand l