Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Very simple python question

Name: Anonymous 2010-10-07 21:18

>>> prefixes("overall")
['', 'o', 'ov', 'ove', 'over', 'overa', 'overal', 'overall']

I need to be able to return the statement above, so far all I have is:

def prefixes(x):
    return [v for v in

I don't know where to go from here or if what I have so far is wrong, but I know that the statement should only be about 1-2 lines.  I was told that there should be a slicing statement

is anyone able to help me with this program?

Name: Anonymous 2010-10-07 23:02

I don't pay attention because I hate python, I only have to take the class because its a prerequisite because apparently its a good language to start people off in.  prior to it I have taken a year of VB, C and some C#, i'm in high school taking a fucking college class (that I should have been able to test out of)

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List