Python Code For Formatting Marks