Computer Science, asked by ritikakoshti22, 4 months ago

it's urgent
14th question
In python language
don't give nonsense answers
answer 14th question
it's urgent...............​

Attachments:

Answers

Answered by Oreki
3

Code:

   lst = [int(number) for number in input("Enter the elements - ").split( )]

   search = int(input("Enter the search element - "))

   print("Is Present" if search in lst else "Not Present")

Sample I/O:

  Case 1:

       Enter the elements - 1 2 3 4 5 6 7 8 9 10

       Enter the search element - 3

       Is Present

  Case 2:

       Enter the elements - 1 2 3 4 5 6 7 8 9 10

       Enter the search element - 11

       Not Present

Similar questions