Pregunta de entrevista de Tech Mahindra

Python substring question i.e separate out the second word by name out of any two words given.