Task 8 Write a python program that splits a given string on a given split character. The first input is a String and the second input is the character that will be used to split the first String. [You...




Must show it in Python:



Please show step by step with comments.



Please show it in simplest form.



Please don't use any functions




Please don't use any def func ()


Task 8<br>Write a python program that splits a given string on a given split character. The first input is a String and the second input is the character that will be used<br>to split the first String. [You cannot use the built-in split function]<br>===== ==<br>======<br>Sample Input 1:<br>This-is-CSE110<br>-<br>Sample Output 1:<br>This<br>is<br>CSE110<br>Explanation: The second input which is the character '-', is used to split or divide the first input String 'This-is-CSE110' into 'This', 'is' and 'CSE110' which<br>are printed individually in seperate lines.<br>=============================<br>Sample Input 2: tom@gmail,harry@yahoo,bob@gmail,mary@gmail<br>Sample Output 2:<br>tom@gmail<br>harry@yahoo<br>bob@gmail<br>mary@gmail<br>=====================================================================<br>

Extracted text: Task 8 Write a python program that splits a given string on a given split character. The first input is a String and the second input is the character that will be used to split the first String. [You cannot use the built-in split function] ===== == ====== Sample Input 1: This-is-CSE110 - Sample Output 1: This is CSE110 Explanation: The second input which is the character '-', is used to split or divide the first input String 'This-is-CSE110' into 'This', 'is' and 'CSE110' which are printed individually in seperate lines. ============================= Sample Input 2: tom@gmail,harry@yahoo,bob@gmail,mary@gmail Sample Output 2: tom@gmail harry@yahoo bob@gmail mary@gmail =====================================================================

Jun 09, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here