From cceacf9d2c304ac071eff1a5c2bbb2190c98d52d Mon Sep 17 00:00:00 2001 From: Thomas Skaflem Date: Sat, 18 Feb 2017 15:53:29 +0100 Subject: [PATCH] Updates README.md with example of the new `common_sub()` function --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 08a2b5a..465210f 100644 --- a/README.md +++ b/README.md @@ -56,9 +56,9 @@ Install via pip foo/and/bar >>> print(sort(["Banana", "Orange", "Apple", "Mango"], order="descending")) ['Orange', 'Mango', 'Banana', 'Apple'] - >>> print(common_subsequences({"Lorem": "dummy", "Ipsum": "Dummy text"}, {"Lorem": "dummy", "Ipsum": "Dummy"})) - {'Lorem': 'dummy'} - >>> print(longest_common_subsequence("Python is named after Monty Python", "What is Python Used For ?")) - Python - >>> print(shortest_common_subsequence("Python is named after Monty Python", "What is Python Used For ?")) - is \ No newline at end of file + >>> print(common_sub("Python is named after Monty Python", "What is Python Used For ?")) + ['Python', 'is', 'Python'] + >>> print(common_sub("Python is named after Monty Python", "What is Python Used For ?", sequence="shortest")) + is + >>> print(common_sub("Python is named after Monty Python", "What is Python Used For ?", sequence="longest")) + Python \ No newline at end of file