You can tell this was originally posted in GD from the replies (whoever recommended the Snake Diet guy should drink bleach, that guy claims he can cure cancer, AIDs etc).
OP - take a tri-pronged outlook at this
1) you're weak and want to be stronger; you don't need a gym for this but it's easier because gym equipment (barbells, dumbbells, machines) facilitate adding more weight over time progressively more easily. Lots of posters on here (me included) were overweight once but decided their desire to get fit outweighed their worry about being judged by other gym goers, which is largely all in your head at any decent gym, as most people are just there to get on with what they're doing. If you have an easily accessible gym near you, I'd recommend that over training at home. If you want to train at home, then ideally you need enough space (plus money and the right kind of space) for some decent equipment. If you just want to use bodyweight then that can be viable, but it's much easier for someone skinny to progress their ability to do pull-ups, for example, than someone who is very overweight, so you have to take that into account.
2) you're fat and want to be less fat. Training to be strong doesn't use up much energy compared to say, prolonged cardiovascular exercise, so it's crucial that you start moving your body about more. While you can start doing cardio, it's still not quite as important as what you're doing the rest of the day. In training/nutrition speak this is NEAT (non-exercise activity thermogenesis) - walking, carrying the shopping, going up the stairs, taking the dog out etc - and it's what accounts for the bulk of your daily energy expenditure. Use your phones built-in step tracker (or get the app) and start trying to reach a consistent number, then see how you can up that till you're moving around a respectable amount (there's no reason why 10k steps is the gold-standard, but it's a decent amount). Someone who is moderately active is going to have a much easier time losing weight than a couch potato, because the former will be able to eat more whilst still being in a calorie deficit due to the amount of energy needed to maintain their weight being higher.
3) outside of being a pro athlete, it's unlikely you can exercise so much you lose weight without changing your eating habits and that's a whole thread in itself. There's a huge variety of ways you can tackle this - which all achieve a consistent calorie deficit over time - but most of it's going to be down to which method suits your preferences and lifestyle and making long-term changes to your way of eating.