We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d1cb8f4 commit 5a2351aCopy full SHA for 5a2351a
Beginers/DictOfStateCapitals/StateCapitals.py
@@ -1,11 +1,11 @@
1
"""We have an existing dictionary that maps US states to their capitals.
2
3
-Print the state capital of Idaho
4
-Print all states.
5
-Print all capitals.
6
-Create a single string 'Alabama -> Montgomery, Alaska -> Juneau, ...'
7
-
8
-Now we want to add the reverse look up, given the name of a capital what state
+1. Print the state capital of Idaho
+2. Print all states.
+3. Print all capitals.
+4. Create a single string 'Alabama -> Montgomery, Alaska -> Juneau, ...'
+5. Ensure the string you created in 4. is alphabetically sorted by state
+7. Now we want to add the reverse look up, given the name of a capital what state
9
is it in?
10
11
Implement the function def get_state(capital): below so it returns the state.
0 commit comments