Any exercise that puts you in a caloric deficit will help you lose weight. However weight loss is 80% diet. You can walk on the treadmill for 8 hours a day, but if you are eating more calories than you are burning, you are still going to gain weight.
Best thing is cardio and weight lifting for total body. Look at the bikini body mommy workouts. They are free and use all your muscles. Cardio works but adding weight lifting in, low weight high reps. It’s great for total body inches and your body burns longer