Answer to Question #266207 in Python for Isabel Cortez

Question #266207

Create a program using the following features:

* Array

* Class

* Specific Sorting Algorithm

* Specific Searching Algorithm


1
Expert's answer
2021-11-15T17:30:12-0500
class Test:
  def Searching(*arr):
    elem= arr[1]
    if elem in arr[2]:
      return "Yes"
    else:
      return "No"
  def Sorting(*arr):
    arr[1].sort()
    return arr[1]
inp = [10,9,8,7,6,5,4,3,2,1]
t1 = Test()
print(t1.Searching(5,inp))
print(t1.Searching(13,inp))
print(t1.Sorting(inp))

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS