Advertisement
Guest User

Untitled

a guest
Oct 21st, 2014
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. # Defining the results
  2. Results =[["Harry",20,25],["Sandra",10,12],["Michelle",23,21],["Mike",18,16]]
  3.  
  4. #Adding the two test scores and appending them onto each persons list
  5. Results.insert(lambda [x][3],result[x][1] + result[x][2])
  6.  
  7. #Printing the result to check the insert worked
  8. print(Results)
  9. #
  10.  
  11. Results.insert(lambda [x][3],result[x][1] + result[x][2])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement