Question: write a uction called retumJisr that takes a string as a parameter and retums a list of words in the Sting words. ae entes that
write a uction called retumJisr that takes a string as a parameter and retums a list of words in the Sting words. ae entes that a e seperated by either commas ll or spaces r 1 in case the string contains neither commas nor spaces, the string will be returned without any manipulation Note We are not testing for the case where both commas and spaces are present in the string so feel free to ignore that Example: Inout Emer the string this is a sring Output [this, 1s, a, string nout Enter the string Pranshu.Enbody Aliseza output [Pranshu, Enbody, Alireza Code Full Screen codepy O Nevw 3 - def main): S result return l1st(the string) 6print (result) 8 main() the string input("Enter the string
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
