How to update arguments as key value pair from user input

Hi community,

is there a way to do this?

something like

app_args["Originator"] = "John Doe"
txn = transaction.ApplicationUpdateTxn(sender, params, app_id, approval_program, clear_program, app_args)

so that the global variable “Originator” is updated to have a value of “John Doe”

Where can i find some example syntax?

Thanks is advance

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