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