Also you might want to note, that's a good start to programming. At least you realize repeating things you read online is a bad idea. Coding is quite a real profession, rather like a builder or crafter. You need to actually understand and make things. It's not a corporate type profession where you can get away with bull ........ and management speak.
So in a way you've kinda already learned something