From 87df33f49ff1fd1bb44312bbb061d687714ab3b6 Mon Sep 17 00:00:00 2001 From: gahjelle Date: Fri, 20 Oct 2023 12:39:59 +0200 Subject: [PATCH] Final QA --- document-python-code-with-chatgpt/prime.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/document-python-code-with-chatgpt/prime.py b/document-python-code-with-chatgpt/prime.py index f27ede4273..b7e9f21e1c 100644 --- a/document-python-code-with-chatgpt/prime.py +++ b/document-python-code-with-chatgpt/prime.py @@ -1,17 +1,17 @@ """Prompt Write a Google-style docstring for a function that takes an -integer as an argument and determines whether it’s a primary +integer as an argument and determines whether it’s a prime number. """ # Output: -def is_primary_number(n): +def is_prime_number(n): """ - Determines if an input integer is a primary number. + Determines if an input integer is a prime number. This function takes an integer as an argument and checks - whether it is a primary number. A primary number is a + whether it is a prime number. A prime number is a positive natural number greater than 1 that has no positive integer divisors other than 1 and itself. @@ -19,7 +19,7 @@ def is_primary_number(n): n (int): The integer to check. Returns: - bool: True if the input integer is a primary number, + bool: True if the input integer is a prime number, False otherwise. Raises: