from typing import Iterable
def get_all_values(d):
if isinstance(d, dict):
for v in d.values():
yield from get_all_values(v)
elif isinstance(d, Iterable) and not isinstance(d, str): # or list, set, ... only
for v in d:
yield from get_all_values(v)
else:
yield d
dict={"Car":["Lamborghini","BMW","Mercedes"],"Mobile":["Iphone","OnePlus","Samsung"]}
nd = [value[i] for value in dict.values()
for i in range(2)]
print(*nd,sep="\n")