Welcome to our repository here we add python programs for our ease of learning and improving at python!
- Fork this repository
-
Add Your code in the forked repository
-
Send a pull request
-
Wait for the maintainer to review it and give feedback
-
Boom! done when merged you got yourself a contribution
-
Write a brief description of the python program you are writing like (question,input and output)
example:
# question=Write a program that takes an integer n as input and prints a butterfly pattern.
# Input=First line will contain an integer n.
# Output= Print the butterfly pattern with height and width 2n-1. (Print them without space in-between)
# code for this question
n=int(input()) # take n input value
for i in range(1,n+1):
for j in range(1,2*n):
if j==1 or j==2*n-i or j>=2*n-i or j<=i:
print("*",end="")
else:
print(" ",end="")
print()
for m in range(n+1,2*n):
for k in range(1,2*n):
if k>=m or k==1 or k<=2*n-m :
print("*",end="")
else:
print(" ",end="")
print()
-
Write your python program
-
submit a pull request and you're done!
-
Your code should be self explanatory (add comments to explain in between)
-
code should follow the style of the other codes in the repository
Thanks for taking out time to view our repository!
Thanks for your contribution !
Also if you like the repository don't forget to ⭐ the repository
Happy Coding! 👋