How do I learn to use the Leica M24 camera?
I think you mean a Leica M240.
Actually it is a professional camera. The best you can do is chose the single shot mode and put the shutter speed to automatic, to start.
There are so many settings in this camera, it would take days to explain, if you already had some experience with another camera. Like what ISO, why to work with a aperture or speed setting.
I can tell you, I'm an amateur for almost 50 years now, and I'm still learning. My latest camera I own now 3 years and still I don't use it to the full extend. But everyone can see the quality of the pictures are getting better over time, because I learn what settings are the best in a certain situation.
Read the manual, special the one about the settings, to get used to the knobs and buttons on the camera. Also read the part of the viewfinder, because you have to come familiar with what you see there.
I wish you lots of fun with this beautiful camera.
Just one advice:
There are no bad pictures, just missed chances to take one.