I am out of trial and error again Lists

Denis McMahon denismfmcmahon at gmail.com
Sat Oct 25 18:15:30 EDT 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