Extract First name, Middle name and last name
Problem Statement: You need to process an input string, accepted from standard input. These are basically names which are to be separated in First Name, Middle Name and Last Name. In the platform you need to process a single string from standard. But you can extend the code later in your system so that you read data from an excel file (consisting of names) and produce a csv file as output. Input: You need to read a line from STDIN to extract First Name, Middle Name and Last Name Output: First Name, Middle Name and Last Name (separated by a single comma) Test Cases: Input: Krunalkumar Haribhai Ramanujsadhu Output: Krunalkumar,Haribhai, Ramanujsadhu Input:Mukul Gupta Output:Mukul,,Gupta Input:Manoj Kumar Singh Gowda Output:Manoj,Kumar,Singh,Gowda My attempt with python https://code.sololearn.com/c1eKydNDawy7/?ref=app