Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Konard/cfa6554b63330d5fd6cdf02bfc7d6f84 to your computer and use it in GitHub Desktop.
Save Konard/cfa6554b63330d5fd6cdf02bfc7d6f84 to your computer and use it in GitHub Desktop.
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