I have some data(List data,particularly) the look like this when I print out

```
 PROBABILITY AND STATISTICS B+
 DISCRETE MATHEMATICS A
 DATABASE MANAGEMENT SYSTEMS C+
 FORMAL LANGUAGES AND AUTOMATA THEORY A
 INTERNET TECHNOLOGIES A
 MANAGERIAL ECONOMICS AND FINANCIAL ANALYSIS A
 DATABASE MANAGEMENT SYSTEMS LAB A++
 INTERNET TECHNOLOGIES LAB A++
 COMPREHENSIVE ONLINE EXAMINATION B

```

but I want like this:

```
 PROBABILITY AND STATISTICS                  B+
 DISCRETE MATHEMATICS                        A
 DATABASE MANAGEMENT SYSTEMS                 C+
 FORMAL LANGUAGES AND AUTOMATA THEORY        A
 INTERNET TECHNOLOGIES                       A
 MANAGERIAL ECONOMICS AND FINANCIAL ANALYSIS A
 DATABASE MANAGEMENT SYSTEMS LAB             A++
 INTERNET TECHNOLOGIES LAB                   A++
 COMPREHENSIVE ONLINE EXAMINATION            B

```

How can I achieve this in python?