if i write the code, i am getting like this, how do i make a dictionary with this data given?
{'robin Chennai':['laptop','mobile','books'],'sisku Mumbai':['books','watch'],'madhavi Bangalore':['laptop','white board','markers'],'sanjay Chennai':['books','printer','ipad'],'rampal Mumbai':['ipad','printer','watch']}
what i am getting,
robin chennai
laptop
mobile
books
sisku mumbai
books
watch
madhavi bangalore
laptop
white board
markers
sanjay chennai
books
printer
ipad
rampal mumbai
ipad
printer
watch
What I have tried:
n=int(input())
d={}
for i in range(n):
g=str(input())
print(g)
m=int(input())
for j in range(m):
e=input()
print(e)