Advertisement
Guest User

Untitled

a guest
Oct 28th, 2016
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. TypeError: tuple indices must be integers or slices, not str
  2.  
  3. The code:
  4.  
  5. def update_transaction(transactions):
  6. x = input("Pick a transaction by index:")
  7. a = float(input("Choose a new ammount:"))
  8. b = input("Choose a new day:")
  9. c = input("Choose a new type:")
  10. i = 0
  11. transactions[int(i)] = (a, 'b', 'c')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement