On one side, the way AI learns is very different from the way humans learn, as it doesn't involve emotions in the learning process, which means it might run into difficulties when facing unexpected situations. However, with the emergence of deep learning, which is inspired by the neural links in the human brain, AI learning becomes more and more similar to that of human learning. One similarity is clear, though - both AI and humans learn based on a trial-and-error method. If you want to know more about machine learning, you should check out DataCamp's Understanding Machine Learning and Introduction to ChatGPT courses.