Solve the python standard formation problem in code.