How to update arguments as key value pair from user input

This question is similar to the use of arrays in pyteal, as such look this Using of array in PyTeal