The code

The amateur's attempt...

Creates a spinning | in console