Если вы используете index.html
в качестве шаблона. Это должно выглядеть следующим образом:
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
<h3>This is a parameter from app</h3>
{{ x }}
</body>
</html>
и вам нужно изменить execute()
функцию следующим образом:
def execute():
x = 'this is imam'
print("this is imam")
#perform some task after first print then print next function
y = 'this akarsh'
print('this akarsh')
#perform some task after first print then print next function
z = 'this is abhi'
print('this is abhi')
result = [x,y,x]
return result
Вы можете использовать список (или любую структуру данных Python) дляверните результаты.