You are viewing a single comment's thread. Return to all comments →
did it without re, re syntax looks difficult ngl
s=input() string =[*s] flag=1 while len(string)>0: character = string.pop(0) if character.isalnum() and len(string)>0: if character== string[0]: print(character) flag=0 break if flag==1: print(-1)
Seems like cookies are disabled on this browser, please enable them to open this website
Group(), Groups() & Groupdict()
You are viewing a single comment's thread. Return to all comments →
did it without re, re syntax looks difficult ngl