>
> I'm trying with this operator, could it possible?
>
> fruit1 = 'apple'
> fruit2 = 'orange'
>
> fruits = fruit1 or fruit2
>
> is 'orange' = fruits ?

Maybe this:

#######

fruit1 = 'apple'
fruit2 = 'orange'

fruits = [fruit1, fruit2]

print 'orange' in fruits    # prints the boolean result of 'orange in 
fruits'

#######

Regards,
Charles B. 

_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to