Guest User

Untitled

a guest
Feb 20th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. def toNumbers(strList):
  2. sum = 0
  3. strList[:]= (ord(ch)-96 for ch in strList)
  4. print(strList)
  5.  
  6.  
  7. def main():
  8. print("Modifies each entry in the list by converting it to a number.")
  9. strList = [ "d", "t", "c"]
  10. nums= toNumbers(strList)
  11. main()
Add Comment
Please, Sign In to add comment