Code QuizBeginner

Reading the API key from env

Find the error in loading the API key from an environment variable.

Codepython
import os
from openai import OpenAI

api_key = os.getenv("OPENAI_API_KEY")
client = OpenAI(api_key="OPENAI_API_KEY")

What is the bug in this code?