I am out of trial and error again Lists

Denis McMahon denismfmcmahon at gmail.com
Sun Oct 26 00:15:30 CEST 2014


On Fri, 24 Oct 2014 20:15:02 -0400, Seymore4Head wrote:

> On Wed, 22 Oct 2014 16:30:37 -0400, Seymore4Head
> <Seymore4Head at Hotmail.invalid> wrote:
> 
> name="012"

name is a string of 3 characters

> b=list(range(3))

b is a list of 3 numbers

> print (name[1])

name[1] is the string "1"

> print (b[1])

b[1] is the number 1

> if name[1] == b[1]:
>     print ("Eureka!")

This didn't happen

> else:
>     print ("OK, I get it")

This happened

-- 
Denis McMahon, denismfmcmahon at gmail.com



More information about the Python-list mailing list