Answered step by step
Verified Expert Solution
Question
1 Approved Answer
can someone help me find the error Leaner SearchAList.py - C:/Users/chris/AppData/Local/Programs/Python/Python39/Leaner SearchAList.py (3.9.1) File Edit Format Run Options Window Help #create some random numbers and
can someone help me find the error
Leaner SearchAList.py - C:/Users/chris/AppData/Local/Programs/Python/Python39/Leaner SearchAList.py (3.9.1) File Edit Format Run Options Window Help #create some random numbers and store numbers in a list, display the lists #ask user to enter a number, then use this number search inside that list how many times that number appear on that list. # Date 3 15 2021 import random def print_out_list(1st, list_number): print (f'display lists: (list_number}') for jin lst: print (i, end = ! def leaner search (1,x): count=0 for i in range(len (1)): (x=1[i]): count=count+1 retul count lstl = 1 For in range (20): 1st] + [random.randint (1,20)1 print_out_list(lsti, "list 1") element int (input(" Enter the number to be searched in the list: ")) present=learner_search (1stl, element) (present>0): print (1 "number element is present present times in the list") print(" Number element) is not present in this list") 11.57"] Type here to search oStep 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