Skip to content

MahaKhudhair/PythonChallenge-3

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

PythonChallenge

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'
}

About

This is about a set of tests to the python programmers

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%