<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def zval_dict_from_potcar(potcar):
 """ Creates zval_dictionary for calculating the ionic polarization from Potcar object potcar: Potcar object """

    zval_dict = {}
    for p in potcar:
        zval_dict.update({p.element: p.ZVAL})
    return zval_dict