Code:
List1 = [] while True: A = raw_input() if A: A = A.split(" ") List1.append(A) else: break print List1
print List1 returns
[[A,000],[B,10]]
if want to know how to add these elments into a dictionary, let D = {}, and for e.g.
A is the 1st key, 000 is the value associated with A, etc for the rest of the elements in the List
Thank you for any help i would really appreciate it!
Comment