Sends are delayed until consumer completion. To override this, you may pass immediately=True.
Channel('some-channel').send(message, immediately=True)
quest = input('Какая фигура?')
if quest.lower() in ['прямоугольник', 'rectangle', 'rect', 'ghzvjeujkmybr']:
print('прямоугольник')
elif quest.lower() in ['треугольник', 'triangle', 'tri', 'nhteujkmybr']:
print('треугольник')
elif quest.lower() in ['круг', 'circle', 'rheu']:
print('круг')
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")