I was hoping someone could explain what the comma in between 'n' and 'digit' does.
while n > 0:
n, digit = divmod(n, 10)
total_sum = total_sum + digit ** 2
return total_sum
I've seen the comma been used in other situations and had always thought that, in this case, it meant that n and digit were equal to divmod(n, 10). I tried to see if the code still works but it doesn't so that doesn't seem to be the case. Could anyone explain what the comma in between the n and digit is denoting?