Re: [sage-support] list updating

2011-03-29 Thread Jim Ragsdale
you might try using the zip command. If you use the * operator with zip it will unpack the elements into the individual variables Sys, Dia, Pulse =zip(*mesures) mesures.append([181,88,58]) Sys[-1],Dia[-1],Pulse[-1] of course you can use zip to go the other way too: mesures = zip(Sys, Dia, Pulse)

[sage-support] list updating

2011-03-26 Thread clodemil
Hi All, Measurements are taken for blood pressure and entered as 3-tuples: [P_systolic,P_diastolic,Pulse_rate] and put in a list mesures=[[172,91,57],[181,88,58],[146,88,56],[191,85,59],[171,92,50], [157,93,55],[180,84,48],[142,77,60],[169,80,45],[162,76,59], [167,104,73],[166,81,53],[145,78,59],