# Remove repeated underscore characters.
# Uses a list comprehension with a conditional expression.
s = 'a_b_c__d___ef___g'
print(s)
print(s.split('_'))
print([ x  for x in s.split('_') ])
print([ x  for x in s.split('_') if len(x) > 0 ])
print('_'.join([ x  for x in s.split('_') if len(x) > 0 ]))

58762038824d816fb302447bf71c2d90892d59d2
<mask token>

<mask token>
print(s)
print(s.split('_'))
print([x for x in s.split('_')])
print([x for x in s.split('_') if len(x) > 0])
print('_'.join([x for x in s.split('_') if len(x) > 0]))

s = 'a_b_c__d___ef___g'
print(s)
print(s.split('_'))
print([x for x in s.split('_')])
print([x for x in s.split('_') if len(x) > 0])
print('_'.join([x for x in s.split('_') if len(x) > 0]))

# Remove repeated underscore characters.
# Uses a list comprehension with a conditional expression.
s = 'a_b_c__d___ef___g'
print(s)
print(s.split('_'))
print([ x  for x in s.split('_') ])
print([ x  for x in s.split('_') if len(x) > 0 ])
print('_'.join([ x  for x in s.split('_') if len(x) > 0 ]))
