Content
from openai import OpenAI client OpenAI (apiKey’ sK-OVV6fGRqTv8V9b2v4a4ST3BUbKFJoraQEdtUedQpvISWRLGA’) def is even (num): response client.chat.completions.create model"gpt-3.5-turbo" messages "pole": "system" "content": """You have to decide if a number is even or not. You can only answer with yes of no. lowercase without period""", "role": "User" "content": f"Is num even?", ) if response ‘yes’: return True lif response ‘no’: return False else: return None