Question: Hello, I need help because they say my answer is incorrect. Please number it so l know which line to put the answer on, and
Hello, I need help because they say my answer is incorrect. Please number it so l know which line to put the answer on, and please write it down the whole thing because, so I would know what to keep and don't keep please. Could you please show me in your code how you number and write it down? I am having a hard time.Thank you
92.py Guide Enter the string Collapse this is a string ['this' , 'is', 'a' 'string' ] Question 2 def main() : #DO NOT MODIFY THIS FUNCTION the_string = input("Enter the string: \ ") result = return_list(the_string) Write a function called return_list that print (result) 10 takes a string as a parameter and returns a 11 main () list of words in the string. "Words" are entities that are separated by either commas (';') or spaces (' '). 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 interaction 1: Enter the string: this is a string ['this', 'is', 'a', 'string"] Example interaction 2: Enter the string: Pranshu, Zaabar,Alireza ['Pranshu', 'Zaabar'. 'Alireza"] TRY IT Test 1 (3 Pts) Check It! Show diff * LAST RUN on 6/4/2024. 3:52:06 PM Check 1 failed 100% (1:1) Output: Terminal File "q2. py", line 1 codio@yoyocontact-sourceroger : ~/workspaces Enter the string: SyntaxError: invalid syntax Expected: Enter the string: [ 'Pranshu', 'Zaabar', 'Alir Check 2 failed Output : File "q2. py", line 1 Enter the string: SyntaxError: invalid syntax Expected: Enter the string: ['The', 'scientists', 'of', Check 3 failed Output : File "q2. py", line 1 Enter the string: SyntaxError: invalid syntax Expected: Enter the string: nospaceshere Next