How to only run command if boolean is true

So I’m trying to make a trivia command for my discord bot. I want to make it so when you input the answer you can’t not answer once more. I tried something like this:
import discord
from discord.ext import commands

trivia_list = {