Skip to main content
2 of 5
-1 byte
Jo King
  • 47.5k
  • 5
  • 125
  • 186

Befunge-98 (PyFunge), 22 21 bytes

'[,1#v&." |",,
,]'@j<

Try it online!

If there weren't weird restrictions on output, we could do this in 18:

'[,1#v&.'|,
,]'@j<
Jo King
  • 47.5k
  • 5
  • 125
  • 186