Skip to content

Commit 524ce1c

Browse files
authored
Create end_other.py
1 parent e8753a2 commit 524ce1c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

String-2/end_other.py

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
def end_other(a, b):
2+
n = len(b)
3+
m = len(a)
4+
if m > n :
5+
return (a[m-n:m].lower() == b.lower())
6+
return (b[n-m:n].lower() == a.lower())

0 commit comments

Comments
 (0)