str_row = "".join(i).split("0")#0 0 1 1 1 형태#'' '' '111'로 변환
코테/Python기법

import redef isPallindrome(s : str) -> bool: s= s.lower() print(s) s= re.sub('[^a-z0-9]','',s) print(s) return s == s[::-1]print(isPallindrome("race A car"))# race a car# raceacar# False

alpha = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'a', 'b', 'c', 'd' ]alpha = list(set(alpha))print(alpha)