When there is one name too many
Predict the output · Medium · §8.4 Returning several values
Predict the output without running the code.
Code
def first_rest(word):
return word[0], word[1:]
a, b, c = first_rest("python")
print(a, b, c)Solve this problem in your browser
Python runs in your browser and checks your answer right away. Hints and the answer are on the problem page.