← Back to challenges

Get Student Names

PythonHardarraysobjectsdata_structuresloops

Instructions

Create a function that takes a dictionary of student names and returns a list of student names in alphabetical order.

Examples

get_student_names({
  "Student 1" : "Steve",
  "Student 2" : "Becky",
  "Student 3" : "John"
}) ➞ ["Becky", "John", "Steve"]

Notes

  • Don't forget to return your result.
python3
Loading editor…
to run
Walks through the solution with reasoning and edge cases.
Next: Say Hello to Guests