Actually, there are two ways to learn guitar, it’s either you enroll in a music school, workshop or you do it yourself, self-taught.
If you have a budget then the best way to go to a music school because in that way you will learn a lot from basic to complex chords.
But on the other hand, if you just want to learn for fun then you can just tutorial videos on youtube it really helps a lot, all you need is patience and dedication.
Here is one of the video, that helps me a lot when I was starting to learn basic guitar.
Hope the video helps, good luck with your practice.