I have the same experience when I was a beginner. I bought an altcoin because I thought it could provide a good profit in time but I made the wrong decision. It has no value now. It thought me a lesson that I should choose a coin with good potential. I'm now choosing a well-established coin such as bitcoin and ethereum.
for beginners, actually don't be too brave to take risks to invest. the best way to choose is to choose some altcoins that are potentially good and far from death.
Indeed beginners must learn more about tokens before investing in them, but many of them are happy with trying. If we have a little knowledge and then are interested then try, then it is an experience that most fail. With this experience, they will learn more and understand the trends that are happening so they can try again but for a profit.