Help with basic python code

Hi! Fellow newbie here. I am constantly getting an error in a simple python code. Can someone please help?

It’s being printed to the console, and not to the flask application you’re running.

use return render_template('Index.html', value="2") because this returns to the index.html


also check for any errors in the console to see if thats stopping it from showing stuff

1 Like

Also i can’t see the error on my side, what does the error say?

1 Like

Create a folder called “templates”, put your Index.html and mood.html inside the folder and try to run the code again.