Skip to content

Python 정렬 : 리스트, 딕셔너리 #20

@yeonsssu26

Description

@yeonsssu26
  1. 리스트 정렬
    room.sort(key=lambda x: (x[0], x[1]))

  2. 딕셔너리 정렬
    auction = sorted(auction.items(), key=lambda x: (len(x[1]), x[0]))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions