How To Take Dynamic Input In List In Python