sites = {
"asos" : ["adidas", "nike", "reebok", "asics", "karhu"],
"lamoda" : ["adidas", "nike", "reebok", "asics", "karhu", "demix", "fila"],
"brandshop" : ["adidas", "reebok", "champion" ],
}
def get_sites(name="asics", sites):
for x, y in enumerate(sites):
if name in sites:
print (х + str (sites[КЛЮЧ] + ".com"))
else:
print("Такой марки нет")
sites = {
"asos" : ["adidas", "nike", "reebok", "asics", "karhu"],
"lamoda" : ["adidas", "nike", "reebok", "asics", "karhu", "demix", "fila"],
"brandshop" : ["adidas", "reebok", "champion" ],
}
def get_sites(sites, name="asics"):
for key, value in sites.items():
if name in value:
print(key +'.com')
else:
print("Такой марки нет")
get_sites(sites, name="asics")