help writting code

I have a arduino uno
hello I am new to programing but I hoped that someone would be happy to wolp up some simple code for me or point me in the right spot.

I want to have 4 leds and a switch,
I want the first LED to turn on when the switch is push, (and stay on untill the 2nd LED comes on)
then when the switch is push again I want the first LED to go off and the 2nd LED to turn on,
then when the switch is push again I want the 2nd LED to go off and the 3rd LED to come on,
then when the switch is push again I want the 3rd LED to go off and the 4th LED to come on,

LOOP

then when the switch is push again I want the 4th LED to go off and the 1st LED to come on.
ect,ect,

switch.pptx (46.3 KB)

hello I am new to programing

You need to do it to get better at it. Having someone else write the code for you won't teach you anything.

You need to detect when the switch is pressed and was not before. This requires, of course, that you keep track of the previous state.

When the switch is pressed, but was not before, increment a counter.

Independently of the switch reading, use the value in the counter to determine how many/which LED pin to turn on or off.