alexa
Facebook
Twitter
LinkedIn
Instagram
Whatsapp
Call Now
Quick Inquiry

Prioritizing tasks in python3 using dictionary and list in python ?

Prioritizing tasks in python3 using dictionary and list in python ?

Try to start from this:

 tasks_to_do_today = ["cleaning", "dishes", "vacuuming", "cooking"]
print(sorted(tasks_to_do_today, key=lambda x: labels_priority[x])) 

Python removes duplicates in a dictionary, not in a list.


88 0
7

Write a Comments


* Be the first to Make Comment

GoodFirms Badge
GoodFirms Badge

Fix Your Meeting With Our SEO Consultants in India To Grow Your Business Online