Question: I am doing homework on grok learning (python) and I have found a really hard question: Write a program to read in lines from the
I am doing homework on grok learning (python) and I have found a really hard question:
Write a program to read in lines from the user which are pairs of name and favourite colour, then print out everyone's favourite colours.
For example:
Name and colour: Nicky Blue Name and colour: James Yellow Name and colour: Sam Red Name and colour: Sam Red Nicky Blue James Yellow
?
You can print out the pairs of name and favourite colour in any order.
All names will be unique, and occur only once.
can you please help me with this question
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
