Add a one-line docstring to any Python solution (5 min)
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 1/5
- Thời gian dự kiến
- Dưới một giờ
- Mức phù hợp với người mới
- 85/100
- Loại issue
- Tài liệu
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- python
- Lĩnh vực
- documentation
Hướng nghiên cứu
Chọn một tệp trong solutions/python/ có hàm chính không có docstring; issue gợi ý dùng grep -rL '"""' solutions/python/ để tìm các ứng viên. Thêm một dòng docstring ngắn ngay sau dòng def của hàm và giữ nguyên phần còn lại của tệp. Công việc hoàn tất khi hàm đã chọn có docstring một dòng rõ ràng và thay đổi được gửi trong một pull request.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Add a one-line docstring to any Python solution (5 min)
Most solution files have a function but no docstring. That makes it hard to understand what the function does at a glance. This issue is about adding exactly one line.
Time: ~5 minutes | Level: Complete beginner
What to do
Pick any file in solutions/python/ where the first function has no docstring. Add one line immediately after the def line:
def two_sum(nums, target):
"""Return indices of two numbers in nums that add up to target."""
...
That is the whole change. One line. You are done.
Rules
- Pick any
solutions/python/practiceN.pyfile where the main function has no docstring - Add a single
"""Short description."""line as the first line inside the function - Do not change anything else in the file
- Open a Pull Request
You can claim as many files as you want, one PR per file or batch them together.
How to find files that need a docstring:
grep -rL '"""' solutions/python/
That lists every Python file with no triple-quote string at all.
Open for everyone
This issue is open for everyone: beginners, experienced developers, students, and people who don't code at all. Any language, any level, no experience required. If you want to help, you are welcome here.
How to contribute
- Fork this repo
- Clone your fork and create a new branch
- Make your change
- Commit, push, and open a Pull Request
New to open source? Start here before anything else:
First Contributions - github.com/firstcontributions/first-contributions
Prefer video? Watch this: How to contribute on GitHub (YouTube)
If this repo helps you or you like where it is going, a star is a nice way to say thanks and helps other people find it. Entirely optional, and you do not need it to contribute.
- Ngôn ngữ chính
- Python
- Star
- 3
- Fork
- 2
- Merge trung bình
- 3 giờ 8 phút
- Pull request đã merge (30 ngày)
- 37
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của Huerte/algo-solutions-python
-
15-minutes 5-minutes algorithm any-language beginner-friendly c cpp csharp easy go good first issue hacktoberfest help wanted java javascript kotlin python rust swift typescript
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Huerte/algo-solutions-python#254 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
5-minutes algorithm all-levels any-language beginner-friendly community documentation easy first-timers-only good first issue hacktoberfest help wanted learning no-code-needed open-source python students
Độ khó 2/5 Dưới một giờ Mức phù hợp với người mới 88/100
Huerte/algo-solutions-python#253 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
15-minutes algorithm all-levels any-language beginner-friendly codewars good first issue hackerrank help wanted interview-prep leetcode open-source students
Độ khó 2/5 Dưới một giờ Mức phù hợp với người mới 80/100
Huerte/algo-solutions-python#248 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
5-minutes algorithm all-levels any-language beginner-friendly codewars easy good first issue hackerrank hacktoberfest help wanted interview-prep leetcode open-source students
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 95/100
Huerte/algo-solutions-python#244 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
5-minutes all-levels beginner-friendly codewars documentation good first issue hackerrank hacktoberfest interview-prep leetcode no-code-needed open-source students
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 86/100
Huerte/algo-solutions-python#243 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của Huerte/algo-solutions-python
Issue tương tự
-
AI bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
AUTO-MAS-Project/AUTO-MAS#1960 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
btclib-org/btclib-wallet#872 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug]: Scheduled returns scan all accepted minion keys causing extreme loadCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mởbug needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
saltstack/salt#70789 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 3 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 87/100
btclib-org/btclib#3093 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 1 ngày