Skip to main content
deleted 26 characters in body
Source Link
user45941
user45941

Actually, 1311 bytes

O⌠';*⌡M'#j'#oO⌠';*'#o⌡MΣ

Try it online!Try it online!

Explanation:

O⌠';*⌡M'#j'#oO⌠';*'#o⌡MΣ
O              convert input string to list of ASCII ordinals
 ⌠';*⌡M     ⌠';*'#o⌡M   for each ordinal:
  ';*           repeat ";" repeated that many times
      '#o '#j     join withappend "#"s"#"
          '#o  appendΣ a "#"concatenate

Actually, 13 bytes

O⌠';*⌡M'#j'#o

Try it online!

Explanation:

O⌠';*⌡M'#j'#o
O              convert input string to list of ASCII ordinals
 ⌠';*⌡M        for each ordinal:
  ';*            ";" repeated that many times
       '#j     join with "#"s
          '#o  append a "#"

Actually, 11 bytes

O⌠';*'#o⌡MΣ

Try it online!

Explanation:

O⌠';*'#o⌡MΣ
O            convert string to list of ASCII ordinals
 ⌠';*'#o⌡M   for each ordinal:
  ';*          repeat ";" that many times
     '#o       append "#"
          Σ  concatenate
Source Link
user45941
user45941

Actually, 13 bytes

O⌠';*⌡M'#j'#o

Try it online!

Explanation:

O⌠';*⌡M'#j'#o
O              convert input string to list of ASCII ordinals
 ⌠';*⌡M        for each ordinal:
  ';*            ";" repeated that many times
       '#j     join with "#"s
          '#o  append a "#"