With the .split() function you can split a list of values separated by a separating character into its individual constituent parts. For example, if you have a list of: ‘bks,swhc,rmbs’ you can add the spit function to it ‘bks,swhc,rmbs’.split() and it will separate the list into ‘bks’,’swhc’,’rmbs’. You can also tell the split function to separate the items by any character like a :, *, -, and not just commas.
If you have a string, you can create a place holder in it that you can change with the .format(). For example, the string “Giant glutes {} like a pair of {}”.format(‘smell’,’balls’) will print out Giant glutes smell like a pair of balls. And “Giant glutes {} like a pair of {}”.format(‘massive’,’sluts’) print ‘Giant glutes massive like a pair of sluts’.