a program that asks user to enter number of people their birth year date and month and sorts it
i got the algorithm figured out its just the code thats not hitting me!
elrond 0 Newbie Poster
Recommended Answers
Jump to PostYou want to create a list of [name, year, day. month] lists.
Jump to PostSorting lists is easy in Python:
'''sort_list_lists1.py sort a list of lists by different value index in the lists ''' # test list of [name, year, month, day] lists mylist = [ ['Bob', 1994, 11, 12], ['Zoe', 1992, 3, 21], ['Amy', 1993, 5, 16] ] print("Unsorted:") print(mylist) …
All 6 Replies
M.S. 53 Light Poster
elrond 0 Newbie Poster
Lardmeister 461 Posting Virtuoso
elrond 0 Newbie Poster
Gribouillis 1,391 Programming Explorer Team Colleague
Lardmeister 461 Posting Virtuoso
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.