Skip to content

Latest commit

 

History

History
82 lines (51 loc) · 2.66 KB

README.md

File metadata and controls

82 lines (51 loc) · 2.66 KB

PYTHON PROGRAM REPOSITORY!

GitHub issues GitHub stars Hits GitHub forks Author License Maintained

Hey Coder 👋

Welcome to our repository here we add python programs for our ease of learning and improving at python!

How to Contribute:

  • Fork this repository
Screenshot 2024-10-23 at 10 06 52 AM
  • 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

Format of 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!

Code of conduct

  • Your code should be self explanatory (add comments to explain in between)

  • code should follow the style of the other codes in the repository

Thank You!

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! 👋