nam
is assigned the value returned by input
.
This is not some edge case behavior by the input
function. This is always how function calls work. You can think of it like substituting input('Who are you? ')
with the value returned by it, which is the string typed in by the user in this case.
deleted by creator