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

python, how?!

Name: Anonymous 2008-11-30 10:45

hi.
i want to learn programming, but in my area there ain't anybody that can help me, so i want to ask for something only, kind of beginners book, or anything, and in a language that is powerfull. i heard of python, but i dont know anything about this. help?

Name: Anonymous 2008-12-01 4:03

>>30

for doodad in all_them_doodads:
   if i_really_want_to_work_on_this(doodad):
      work_on_this(doodad)


is the idiomatic Python version, like it or not. If we want to get all functional, we can of course

[work_on_this(doodad) for doodad in all_them_doodads if i_really_want_to_work_on_this(doodad)]

or

map(work_on_this, filter(i_really_want_to_work_on_this, all_them_doodads))

provided the functions are redefined in a non-destructive way. There are no better FIOC solutions, and >>31 is a fucking moron.

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