Linear Code Example In Python