Skip to content

commit-live-students/031-combinations-dict-values

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Write a Python program to create and display all combinations of letters, selecting each letter from a different key in a dictionary.

Notes:

  • Define a function which will accept a dict parameter.
  • For all present keys it will fetch values and will create a pair as described in above example.
  • Store it in list and return.

Instructions:

  • Program should be written in file build.py

  • Function name should be solution.

  • Input

     Type:  Dictionary
     Value: {'one':['a','b'], 'two':['c','d']}
    
  • Expected Output

      Type:  List
      Value: [ac, ad, bc, bd]
    

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages