name: tony color = blue (red) car = yes (no) payed = yes how can i "print" this for example like: Tony car color was blue now red. as blue is old value and whats in ( ) is new, if there is any. d = {} for each line string str is split on ' ' key = str[0] oldval = str[2] newval = str[3] but strip the "(" and ")"