-
-
Notifications
You must be signed in to change notification settings - Fork 46k
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
Print a butterfly pattern using python. #12151
Comments
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as off-topic.
This comment was marked as off-topic.
Size of the butterfly patternsize = 5 Upper part of the butterflyfor i in range(1, size + 1): Lower part of the butterflyfor i in range(size - 1, 0, -1): |
def butterfly_pattern(n):
Change the value of n for a larger or smaller patternn = 5 |
Feature description
You need to take a user input n. and print a butterfly pattern using the input received from the user as side length.
You need to print the above shown pattern from the image.
The text was updated successfully, but these errors were encountered: