Hello, What is the best MacBook for web development? Considering that I'm a web developer, I create light python programs, and I want to learn how to develop ios applications. Also, I want to go cheap..
There isn't one best, as different folks have different requirements. Weight, screen size, numbers of I/O connections, etc. Visit an Apple Store. See the alternatives for yourself.
For web development... Review the recommended configurations for whatever Web development apps and frameworks you prefer. If you're editing HTML and JavaScript in vim or emacs, you won't need a fast Mac. if you're using some more complex process, you'll need to account for those apps and requirements and likely increases over time.
As for app development... Xcode requires lots of memory. 16 is minimal for that, and—with occasional exceptions—I'd expect Xcode memory and storage requirements will increase over time.
If you're working on larger web or larger app development projects, you may or will want a larger internal display, or a connection to a larger external display.
Budget for at least one external HDD of 4 to 6 TB for backups. You might want or need an external keyboard, mouse or trackpad, maybe a spare cable and charger for a second location where you might routinely also work, USB-C to USB-A adapters or a dock, a satchel or messenger bag or other carrying case, or other add-on gear in addition to the external backup storage.
For Mac with Apple silicon more generally: minimally 16 GB memory and as much internal storage as you can afford, as neither can be increased over the lifetime of any portable Mac Apple is currently selling. And if you don't absolutely need mobility with your Mac, the desktop Macs can be a better value—I've worked with various folks that wanted and bought portables, but always used them on the same desk.