To learn pinyin, you need to pay attention to the following steps:
First of all, know the pinyin alphabet.
Then, master the initials, finals and syllables as a whole, so that you can read and write.
Then, make a simple spelling. For example, a y ○○○ is composed of initial y+ single vowel i, and it should be noted that tone is also a very important part and indispensable.
Finally, practice more, you can find information online or find someone who can give you advice.