Код: Выделить всё
def datamodelAuth(data : dict) -> str:
dataModelkeys = list(dataModel.keys())
dataKeys = list(data.keys())
count = 0
for keys in dataModelkeys:
if keys not in dataKeys:
return f"{keys} not found"
else:
count += 1
if count == len(dataModelkeys):
ret = createUser(data) # this function returns a string
return ret
Я пробовал тестировать со строкой, но у меня все еще были проблемы.
Подробнее здесь: https://stackoverflow.com/questions/790 ... eturn-work
Мобильная версия