Forked from serbirjr/gist:45015498e95f3eb32ea229bb23a7fa40
Created
April 27, 2020 11:27
-
-
Save Konard/cfa6554b63330d5fd6cdf02bfc7d6f84 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://www.codewars.com/kata/5b16490986b6d336c900007d/train/python | |
def my_languages(results): | |
newlang = [] | |
for key in results.keys(): | |
if results[key] >= 60: | |
newlang.append({ "Key": key, "Value": results[key]}) | |
newlang.sort(key=lambda x: x["Value"], reverse=True) | |
return [l["Key"] for l in newlang] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment