-3

I have a string containing multiple institutions of the following form:

'Harvard University

Yale University

...

'

Where the collection of institutions are contained in a singular string and each institution is separated by a space of size larger than one. How do I join/format the string so that it can appear in a list like [Harvard University, Yale University,..]?

Nathan
  • 19
  • 4

1 Answers1

0

You can do

list_of_institutions = institutions.split("\n")