How to use the function parameters of python
This article mainly explains "how to use python function parameters", interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Let's let Xiaobian take you to learn "how to use python function parameters"!
position parameter
This is a function for finding the sum of arithmetic series. To use it, you need to pass in a parameter n, which is the position parameter.
def sum(n): sum=0 i=1 while i