1👍
✅
You could use dictionary comprehensions like:
e = {k:v for k,v in request.POST.items() if k[:2] == 'e_'}
i = {k:v for k,v in request.POST.items() if k[:2] == 'i_'}
Source:stackexchange.com