Write Lines Method In Python Programming