Is there a difference in the Python nomeclature wherein a function taking input is different than a function taking an argument?
Isn't the input (i.e. the data you would have a function "process") the same as when you pass an argument to a function?
The reason I'm asking is Codeacademy has a tutorial that asks the student:
Write a function called digit_sum that takes a positive integer n as input and returns the sum of all that number's digits.
For example: digit_sum(1234) should return 10 which is 1 + 2 + 3 + 4.
(Assume that the number you are given will always be positive.)
Isn't input in this sense the same as an argument?
Codeacademy is notorious for its poorly written tutorials, so just checking.