Answered step by step
Verified Expert Solution
Question
1 Approved Answer
why that line is incorrect ? please write the PyCharn code for line 6, thanks In this task we give you some lists. You are
why that line is incorrect ? please write the PyCharn code for line 6, thanks
In this task we give you some lists. You are to write a function called someSame. def someSame (one, two): for a in one: This function will take two lists and return true if there is at least one identical element in each list and will return false otherwise. for b in two return True 9 10 # Define some lists of numbers someNumbers[1,2,3,4,5,6,7,8,9,0] some0therNumbers [11,22,33,44,55,66,77,88,99,100] 12 13 14 15 16 17 18 19 20 21 See if these two lists have one element the same print(someSame (someNumbers, some0therNumbers)) someMoreNumbers[111,222,333,444,555,6,777,888,999,1000] print(someSame (someNumbers, someMoreNumbers)) # Define another list # Check the new list and one of the others CheckIncorrect The file contains syntax errors Peek SolutionStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started