From 9d7411ff443f2210aee125f8979df4eb8b6c89d9 Mon Sep 17 00:00:00 2001 From: pawarharshit <49332515+pawarharshit@users.noreply.github.com> Date: Fri, 24 Jan 2020 10:01:23 +0530 Subject: [PATCH] adding string comparision function --- string.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 string.py diff --git a/string.py b/string.py new file mode 100644 index 0000000..1d332cb --- /dev/null +++ b/string.py @@ -0,0 +1,10 @@ +def compare(s1,s2): + if s2 in s1: + print("True") + else: + print("False") + +s1 = input() +s2 = input() + +compare(s1,s2)