I am out of trial and error again Lists

Ian Kelly ian.g.kelly at gmail.com
Fri Oct 24 19:52:15 CEST 2014


On Fri, Oct 24, 2014 at 11:03 AM, Seymore4Head
<Seymore4Head at hotmail.invalid> wrote:
> Actually I was a little frustrated when I added that line back in as
> the other lines all work.
> Using list(range(10)) Doesn't throw an error but it doesn't work.
>
> http://i.imgur.com/DTc5zoL.jpg
>
> The interpreter.   I don't know how to use that either.

Try both of these in the interpreter, and observe the difference:

7 in range(10)

"7" in range(10)

Do you understand what the difference between 7 and "7" is?



More information about the Python-list mailing list