New guitarists should know that there is no easy way in learning how to play. You have to practice regularly, and it takes patience. It does not come easily, but you shouldn't get frustrated, this new skill will develop over time.
First comes first. Buying a guitar can be confusing and overwhelming. You should go to a music shop and pick them up and hold them try to choose one that feels comfortable and if you still can't decide talk to the shop assistant and see if they have any tips and tricks for picking the right guitar. Don't be fooled by the price tag most of the cheap guitars are fine to begin with. When you first learn to play music on guitar you will not need a fancy guitar as most of the features will go unused and will only get in the way. However as you improve you may want to upgrade in small stages to suit your level of experience.
There is a wide range of classes to learn to play music on guitar. Some classes are free or require a small donation. However most have a fee attached to cover the costs of teachers and equipment. When you participate in a free class, these are generally just as good as a paid class. All classes will help you with basics when you learn to play music on guitar. The best thing about classes is the hands on approach to learning; there is nothing better than having someone give you first hand knowledge on how to do something.
The more you practice the better you will get. There is not such thing as too much practice, but you should spread the practices out so you don't get too burned out to the point where playing isn't fun anymore. The whole point in learning to play is that it is something fun to do, if you don't find it enjoyable, you should not push yourself to do something that you don't like. Don't forget to share your new talent with other people, family, and friends. Music is to be enjoyed by all.