
* 겪고 있는 문제 상황을 최대한 자세하게 작성해주세요.
* 문제 해결을 위해 어떤 시도를 해보았는지 구체적으로 함께 알려주세요.
코드가 문제있는 것같습니다..

from flask import Flask, render_template
app = Flask(__name__)
@app.route('/')
def home():
name = '김서연'
lotto = [16, 18, 22, 43, 32, 11]
context = {
'name': name,
'lotto': lotto
}
return render_template('index.html', data=context)
@app.route('/mypage')
def mypage():
return 'This is Mypage!'
if __name__ == '__main__':
app.run(debug=True)
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
</head>
<body>
<h1>안녕, {{data.name}}</h1>
<h2>로또 번호: {{data.lotto}}</h2>
<ol>
{% for element in data.lotto %}
<li>{{ element|e }}</li>
{% endfor %}
</ol>
</body>
</html>
