From 5cb9a53ca7837a37ffaedb555f40907ba3792abb Mon Sep 17 00:00:00 2001 From: sumudusujith Date: Thu, 27 Oct 2022 14:49:44 +0530 Subject: [PATCH 1/2] create sumudu_sujith.py --- 2022-Oct/03 Oct 2022/sumudu_sujith.py | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 2022-Oct/03 Oct 2022/sumudu_sujith.py diff --git a/2022-Oct/03 Oct 2022/sumudu_sujith.py b/2022-Oct/03 Oct 2022/sumudu_sujith.py new file mode 100644 index 0000000..f8dbb95 --- /dev/null +++ b/2022-Oct/03 Oct 2022/sumudu_sujith.py @@ -0,0 +1,2 @@ +x=input("enter the string : ") +print("new string : ",x.swapcase()) \ No newline at end of file From 1a6cfb60cbc5914d81f289d9d7151d30c0d1150e Mon Sep 17 00:00:00 2001 From: sumudusujith Date: Thu, 27 Oct 2022 14:53:36 +0530 Subject: [PATCH 2/2] created sumudu_sujith.py --- 2022-Oct/09 Oct 2022/sumudu_sujith.py | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 2022-Oct/09 Oct 2022/sumudu_sujith.py diff --git a/2022-Oct/09 Oct 2022/sumudu_sujith.py b/2022-Oct/09 Oct 2022/sumudu_sujith.py new file mode 100644 index 0000000..55eebc5 --- /dev/null +++ b/2022-Oct/09 Oct 2022/sumudu_sujith.py @@ -0,0 +1,9 @@ +#sumudusujith +s=input("enter first string--") +a=[] +for i in range(len(s)): + for j in range(i,len(s)): + b=s[i:j+1] + a.append(b) +c=sorted(a,key=len) +print(c) \ No newline at end of file