paul_kon...@dell.com wrote:
>
> Nit: the Pythonic recommended way of doing this is "if isinstance (item,
> tuple):"
>
> The difference is that this will also work if item is an instance of a
> subclass of "tuple" while the original code does not handle that case. For
> this code, that might not
On Nov 30, 2012, at 4:20 PM, Tim Roberts wrote:
> In the future, I'd like to suggest that you choose a genuine subject
> line when you post. It makes people more inclined to read your messages.
>
>
> Michael Wilson wrote:
>>
>> My thought if there's not already an elegant solution in Python i
In the future, I'd like to suggest that you choose a genuine subject
line when you post. It makes people more inclined to read your messages.
Michael Wilson wrote:
>
> My thought if there's not already an elegant solution in Python is to
> create a flag 'r' before ranges. So, the example here wo
Hi everyone,
I am new to Python. Been poking at it for about a month now. I am trying to
set up a list for information on people.
For example:
person 0's name = "Sam". li[0][0]
person 0's hoppy = "skateboarding" li[0][1]
person 0's favorite color = ["green", "red"] li[0][2] # it appears i can
put