Skip to main content
Commonmark migration
Source Link

#Python 3, 55 bytes

Python 3, 55 bytes

lambda s:[t[1]for t in zip([0]+s,s,s[1:]+[0])if any(t)]

#Python 3, 55 bytes

lambda s:[t[1]for t in zip([0]+s,s,s[1:]+[0])if any(t)]

Python 3, 55 bytes

lambda s:[t[1]for t in zip([0]+s,s,s[1:]+[0])if any(t)]
Syntax highlighting.
Source Link
xnor
  • 146.6k
  • 26
  • 279
  • 652

#Python 3, 55 bytes

lambda s:[t[1]for t in zip([0]+s,s,s[1:]+[0])if any(t)]
lambda s:[t[1]for t in zip([0]+s,s,s[1:]+[0])if any(t)]

#Python 3, 55 bytes

lambda s:[t[1]for t in zip([0]+s,s,s[1:]+[0])if any(t)]

#Python 3, 55 bytes

lambda s:[t[1]for t in zip([0]+s,s,s[1:]+[0])if any(t)]
added 1 character in body
Source Link
Adnan
  • 44.5k
  • 6
  • 82
  • 246

Python#Python 3, 55 bytes

lambda s:[t[1]for t in zip([0]+s,s,s[1:]+[0])if any(t)]

Python 3, 55 bytes

lambda s:[t[1]for t in zip([0]+s,s,s[1:]+[0])if any(t)]

#Python 3, 55 bytes

lambda s:[t[1]for t in zip([0]+s,s,s[1:]+[0])if any(t)]
Source Link
RootTwo
  • 2.1k
  • 9
  • 8
Loading