If you're struggling with coding, do this:
Pick a project that is ridiculously hard.
So hard that you have literally no clue where to start.
Then just try, try, and try until you manage to build it.
After that, you'll never have to worry about not knowing how to code again.