Unable to understand

Sir , i ran both the code , only difference was that list function will give three elements of array type while tolist function will give integer type but there is nothing mentioned in the question so both of them will convert that into list