-
-
Notifications
You must be signed in to change notification settings - Fork 47.1k
Feature/travelling salesman #12494
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
base: master
Are you sure you want to change the base?
Feature/travelling salesman #12494
Changes from 1 commit
d2b0527
d8a7179
459613e
a9703e1
e95c476
f3379c3
39fbc03
aa46f1a
df3b00e
5fb415f
9799ea5
1605f55
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
def butterfly_pattern(n): | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please provide return type hint for the function: As there is no test file in this pull request nor any test function or class in the file Please provide descriptive name for the parameter: Please provide type hint for the parameter: There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please provide return type hint for the function: As there is no test file in this pull request nor any test function or class in the file Please provide descriptive name for the parameter: Please provide type hint for the parameter: |
||
# Üst kısım | ||
# Upper part | ||
for i in range(1, n + 1): | ||
print("*" * i, end="") | ||
print(" " * (2 * (n - i)), end="") | ||
print("*" * i) | ||
|
||
# Alt kısım | ||
# Lower part | ||
for i in range(n-1, 0, -1): | ||
print("*" * i, end="") | ||
print(" " * (2 * (n - i)), end="") | ||
print("*" * i) | ||
|
||
n = int(input("Enter the size: ")) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please provide return type hint for the function:
butterfly_pattern
. If the function does not return a value, please provide the type hint as:def function() -> None:
As there is no test file in this pull request nor any test function or class in the file
graphics/butterfly_pattern.py
, please provide doctest for the functionbutterfly_pattern
Please provide descriptive name for the parameter:
n
Please provide type hint for the parameter:
n