+ 5
How to search for multiple items in a list when input is entered by user in python?
what will be the code to search for item "drink,snacks" from a list menu= "pizza,snacks,milk,fruits,drinks". the output should search for both items and produce output in separate lines.
2 Respuestas
+ 10
Try with intersection of two sets.
+ 1
regular expressions does a better job