Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Final QA #452

Merged
merged 1 commit into from
Oct 20, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading