AWS Exams GCP Exams Azure Exams GitHub Exams Jira Exams ISC2 Exams

Video: You are developing a Python function to github video

Question 1
« Back   Next github copilot-gh-300 Exam Question »

Full Certification Question

You are developing a Python function to calculate the factorial using recursion. GitHub Copilot is suggesting solutions that either don't use recursion or don't handle edge cases. Which prompt should you use to ensure Copilot suggests a valid, recursive solution with error handling for negative numbers?