Combinations of String (Problem 12) - InfyTQ Solution in Python

Combinations of String (Problem 12)

InfyTQ Solution in Python



Photo by Pixabay from Pexels



PROBLEM STATEMENT

Write a python function to generate and return the list of all possible sentences created from the given lists of Subject, Verb and Object.

Note: The sentence should contain only one subject, verb and object each.


Sample Input Expected Output
subjects=["I", "You"] verbs=["Play", "Love"] objects=["Hockey","Football"] I Play Hockey I Play Football I Love Hockey I Love Football You Play Hockey You Play Football You Love Hockey You Love Football



SOLUTION
SHARE If you find this useful, please share with your friends and Community.
CODE TOGETHER..GROW TOGETHER.
Newer Posts Newer Posts Older Posts Older Posts

More posts

Comments

Post a Comment

Sponsored Content