Advertisement
Guest User

Untitled

a guest
Jan 21st, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. numOfPeople = len(results)
  2.  
  3. i = 0
  4. while i < numOfPeople:
  5. name = returns.rows[i][0]
  6. listOfNames = []
  7. listOfNames.insert(i, name)
  8. i +=1
  9. print listOfNames
  10.  
  11.  
  12. ### What I expect:
  13. [u'Bob',u'Frank']
  14. ### What I get:
  15. [u'Frank']
  16.  
  17. Frank being the last person in the numOfPeople results
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement