Yes, storing data for a web application as a Python dictionary inside the program is feasible — especially for small-scale. But there are important pros and cons to consider. Also, if you want a slightly more scalable approach without going full-on database, libraries like persidict
can be an ideal compromise.