Reputation: 1
I have a list that looks like this [(Tony, 1234), (Bob, 2345), (Alan, 3456)].
I need to create a function that will search through the list by the name and then show the number. So something like: find_user_id(Tony, [(Tony, 1234), (Bob, 2345), (Alan, 3456)], I). I being the value of the ID of the user found.
Upvotes: 0
Views: 39