Always Type The Code
Don’t just copy code (from the Internet, coworkers, friends, or even from yourself from your own code).
Type it out.
If you don’t know what the code means, character by character, and you could not arrive to it by yourself without addressing another source, then type it. Only when you can write it yourself effortlessly are you allowed to copy and paste.
Because this is how you learn.
Otherwise you are getting yourself into Learned Helplessness (video from Veritasium), where you are not learning yourself, but are using the energy from others so that you need not spend any. The problem is this is a short term solution. You learn nothing that takes you forward on a better path, where you can be self reliant (video from Lost Relic Games).