How can I pass a python variable to my template via flask?

Solution 1
@app.route('/', methods={'GET'})
def home():
    title = "Frankenstein"
    return render_template('index.html', book_title=title )

The book named "{{book_title}}"

Solution 2
message = 'Hello!'
return render_template('index.html', value= message)