selfteaching / selfteaching/selfteaching-python-camp
Day09 关于在函数中增加变量的问题
Open
Nobody has claimed this yet.
学习心得分享
学习素材分享
- Dominant language
- Python
- Stars
- 151
- Forks
- 875
- PR merge metrics
- No merged PRs in 30d
Description
day9的任务3要求给函数增加整数类型变量。
我原本的理解是在函数中定义一个整数变量,即:
function (x):
y = int()
经教练的指正,这种定义的方法实际上是定义了一个全局/局部变量,而任务3本义为增加函数定义时的参数变量,正确的定义方法应该为:
function(x,y)
如果大家遇到一样的问题可以有所参考。
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Review the Day09 task 3 wording described in the issue, focusing on whether it asks learners to define a local integer variable or add a parameter to the function definition. Update the task text to make the intended parameter-based interpretation explicit, then verify that the example matches the exercise.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100