Python Code For Formatting Hard