Re: Working with a list in a more „pythonic“ way

Nickolay Kolev nmkolev at uni-bonn.de
Sun Apr 4 10:25:44 EDT 2004


> def get_val(x):
>   # gets the value from SSMatrix, now dumb
>   return ord(x)

The point is to sum the transitions *between* the characters and the 
matrix only contains those scores. So "getting the value from SSMatrix" 
for a single character makes no sense (and is impossible).

Nicky



More information about the Python-list mailing list