I will echo what @JoeWilson said above in #11.
I’ve been tinkering with Arduino and sketch writing for more than a year, and still consider myself somewhat of a newbie.
But what has made the difference is really stopping and studying all the online tutorials, going through then one line by one line, to learn how they work.
You need to understand the LED blink examples and how they work so it’s second nature before you proceed to bigger projects. There are loads of online tutorials that walk you through exactly how to code, how to do the connections, and why they work. You need to put the work in there first to study and understand. That includes both the software coding AND the hardware wiring. (Two related but distinct efforts.)
The problem you pose in your original post is essentially this: how to use a physical switch to blink a light. There are loads of tutorials on how to do that. (Actually, you don’t even need an Arduino to blink a light with a switch. Just a power source, light bulb, and a switch. Maybe a resistor if you’re using an LED instead of a resistive lamp.)
This is also where time spend on project design is really important. Have you drawn a picture for yourself of what you’re trying to do? Is an Arduino microcontroller even necessary? If so, why? Exploring all those questions for yourself will help with overall project design. (And also help forum members give really good advice to getting a project over the finish line.)
Anyway, the point is: once you’ve done a lot of exploring, reading, studying, and trial and error, then once you get some code and some wired up components, and if then you hit a brick wall, getting advice on the forum will be more valuable.