How To Take Input In Nested List In Python