diff --git a/.github/ISSUE_TEMPLATE/close_pr.yml b/.github/ISSUE_TEMPLATE/close_pr.yml new file mode 100644 index 0000000000..0d0cc57ea9 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/close_pr.yml @@ -0,0 +1,14 @@ +name: Close Pull Request + +on: + pull_request_target: + types: [opened] + +jobs: + run: + runs-on: ubuntu-latest + steps: + - uses: superbrothers/close-pull-request@v3 + with: + # Optional. Post a issue comment just before closing a pull request. + comment: "Congratulations! You have completed the lab. Closing for maintainence purpose." diff --git a/README.md b/README.md index b103466139..bf0e74f2b0 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,3 @@ -# Introduction to Git and GitHub - -## Simple Interest Calculator - A calculator that calculates simple interest given principal, annual rate of interest and time period in years. ``` @@ -13,4 +9,4 @@ Output simple interest = p*t*r ``` -_© 2022 XYZ, Inc._ +_©2023 XYZ, Inc._ diff --git a/compound_interest.py b/compound_interest.py index 9673a7a029..e0b979e5ab 100755 --- a/compound_interest.py +++ b/compound_interest.py @@ -1,17 +1,3 @@ -# This script calculates yearly compound interest given principal, annual rate of interest and time period in years. -# Do not use this in production. Sample purpose only. - -# Author: Upkar Lidder (IBM) - -# Input: -# p, principal amount -# t, time period in years -# r, annual rate of interest - -# Output: -# compound interest = p * (1 + r/100)^t - - def compound_interest(p, t, r): return p * (pow((1 + r / 100), t))