Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Answer will be phyton pls help ! I will like your comment Question 10 (20p): Write a code snippet that helps the user find their
Answer will be phyton pls help ! I will like your comment
Question 10 (20p): Write a code snippet that helps the user find their Ikigai. Ikigai (pronounced Ick-ee-guy) is a Japanese concept that means "a reason for being." The word refers to having a meaningful direction or purpose in life, constituting the sense of one's life being made worthwhile, with actions (spontaneous and willing) taken toward achieving one's ikigai resulting in satisfaction and a sense of meaning to life. Ikigai A JAPANESE CONCEPT MEANING "A REASON FOR BEING Satisfaction, but feeling of uselessness What you LOVE Delight and fullness, but no wealth PASSION MISSION What you are GOOD AT Ikigai What the world NEEDS PROFESSION VOCATION Comfortable, but feeling of emptiness What you can be PAID FOR Excitement and complacency, but sense of uncertainty SOURCE dreamstime TORONTO STAR GRAPHIC Your code needs to prompt the user their four sets (using input command): What you love? ('Love') What you are good at? ('Good") What the world needs? ("World') What you can be paid for? ('Money') Note that the user can enter multiple elements in any of these sets, therefore, you need to decide a way that user is done entering for that specific group. (For example, you can prompt the user to enter 'Y' when done.) Once the user has entered their information, you are to prepare a dictionary that stores their Passion, Mission, Vocation, Profession and Ikigai subsets in separate keys. You also need to modify your existing lists ('Love', 'Good', World', 'Money) so that they contain only the non-intersecting elements. Your function will be tested with the following test inputs: I Love: "Pets", "Friends", "Family", "Travel", "Helping Others", "Computational Thinking" I am Good at: "Writing", "Travel","Design", "Computational Thinking", "Organizational Structure" I get money for :"Computational Thinking", "Teaching", "Design", "Sales", "Hospitality" What World needs: "Ending Poverty", "Peace", "Compassion", "Helping Others", "Teaching", "Computational Thinking The expected output dictionary format is: output Dictionary = { "Vocation': {'Computational Thinking', 'Teaching'}, 'Profession': {'Computational Thinking', 'Design'}, 'Purpose': {'Computational Thinking', "Helping Others'}, 'Passion': {'Computational Thinking', 'Travel"}, 'Ikigai': {'Computational Thinking'}, 'Good": {'Writing', 'Organizational Structure"}, "World': {'Compassion', 'Peace', 'Ending Poverty'}, "Money": {"Sales', 'Hospitality'}, 'Love': {'Friends', 'Family', 'Pets"} } Notes: Be very careful with your string inputs and remember string equality conditions (upper/lower cases and spaces are important). It would be easier to not modify the initial sets in-place. In order to calculate the desired fields, create an empty dictionary and add fields to this dictionary as you calculate intersections and differences. Output this newly created dictionaryStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started