Python is going to be hard

Seymore4Head Seymore4Head at Hotmail.invalid
Wed Sep 3 14:41:31 EDT 2014


On Wed, 03 Sep 2014 11:33:46 -0700, Ethan Furman <ethan at stoneleaf.us>
wrote:

>On 09/03/2014 11:10 AM, Seymore4Head wrote:
>> import math
>> import random
>> import sys
>> b=[]
>> steve = [1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89]
>> for x in steve:
>>      print (steve[x])
>>
>> Traceback (most recent call last):
>>    File "C:\Functions\blank.py", line 7, in <module>
>>      print (steve[x])
>> IndexError: list index out of range
>
>Python will be incredibly hard if you don't read any of the docs or tutorials available.

You can't accuse me of that.  I have actually read quite a bit.  I may
not be picking it up, but I am trying.



More information about the Python-list mailing list