Readlines Function In Python With Parameters