# 문자열이 특정 단어로 끝나는 것 찾기
str.endswith("txt")

# 특정 단어가 튜플이나 리스트로 있음
endTuple = ('A",'B')
endList = ['A','B']
str.endswith(endTuple)

+ Recent posts