Skip to content

Commit

Permalink
Final QA
Browse files Browse the repository at this point in the history
  • Loading branch information
gahjelle committed Oct 20, 2023
1 parent f45d821 commit 87df33f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions document-python-code-with-chatgpt/prime.py
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
"""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.
Args:
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:
Expand Down

0 comments on commit 87df33f

Please sign in to comment.