Hi All,
I am getting the below error, i tried , but i am unable to find what is the error, how to rectify it. can someone please explain me the error.
ValueError Traceback (most recent call last)
in
----> 1 person = dict("{}is aged {}, and owns an {}.". format(
2 person [“name”],
3 person [“age”],
4 “Android phone” if person [“has_android_phone”] else “iphone”
5 ))
ValueError: dictionary update sequence element #0 has length 1; 2 is required
Note : i have already defined the dictionary in the previous cell