Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- a = [{'name':'cde', 'id':1}, {'name':'abc', 'id':2}]
- TypeError: '<' not supported between instances of 'int' and 'str'
- for i in range(len(a)):
- sorted(a[1]['name'], key=itemgetter(0))
- ['a', 'b', 'c']
- ['a', 'b', 'c']
Add Comment
Please, Sign In to add comment