Q.1: If you have a group of owners who owned the list of files:
files = {
'Input.txt': 'Randy',
'Code.py': 'Stan',
'Output.txt': 'Randy',
'test.py': 'Ali',
'djangoweb.py' : 'Ali'
}
Your code should print the following output:
{
'Ali': ['djangoweb.py', 'test.py'],
'Stan': ['Code.py'],
'Randy': ['Output.txt', 'Input.txt']
}
Q.2: If you have the following two lists:
Types= ['Car', 'Device', 'Fruit', 'Sport']
Things= ['Apple', 'Tennis', 'Computer', 'Mercedes']
Your code should print the following ouput:
myDict= {
'Apple': 'Fruit',
'Computer' : 'Device',
'Mercedes' : 'Car',
'Tennis' : 'Sport'
}