Python is a fabulous language
Archive - Originally posted on "The Horse's Mouth" - 2004-09-24 06:35:48 - Graham EllisI'm running a Python course this Wednesday-through-Friday and for students who have self-taught themselves just enough of a structural programming language, it's a big challenge and also an opening of a door through which a bright light shines. Even I'm still amazed by the cleanness of it all and the way the simple components of the language bolt together to produce short, clear, easy to follow (once you have some experience) code. Just look at this example that sets up and displays a list of lists
menu = [["Soup","Salad"],["Chicken","Beef","Vegetarian"],["Spotted Dick",\
"Trifle","Sticky Toffee","Cheese"]]
for course in menu:
for option in course:
print option,
I'm very familiar with saying "There's a function to do that" on our PHP courses ... and I'm delighted to be able to say "There's a method to do that" for Python too ;-)