Python Flask Basics Character Builder Set a Cookie

Explanation of cookies and how to set them?

Im completely lost when it comes to cookies and setting them. If anybody would be able to provide me with an explanation to them it would be much appreciated.
from flask import Flask

app = Flask(__name__)

def save():