fork download
  1. # your code goes here
  2. truth = "beauty"
  3. index = 0
  4. letters = []
  5. while index < len(truth):
  6. letters.append(truth[index])
  7. index += 2
  8.  
  9. letters = '-'.join(letters)
  10. print(letters)
Success #stdin #stdout 0.02s 9284KB
stdin
Standard input is empty
stdout
b-a-t