結果 : how to take linked list as input in python