How to check through the whole user input and not just the first word
<p>I try to check through user input but it only checks the first word. Any suggestions of how I can get the program to check through the whole string against a 2D list instead of just checking the first word and outputting missing.
Code below:</p>

<pre><code>my_list = [['noisey','pc','broken']['smashed','window','glass']]
search = input('Enter what is going wrong: ')


notfound = 'True'

for i in mylist[0:1]:
   while notfound == 'True':
     if search in my_list[0]:
         print('Found in Pc')
         notfound = 'False'

     elif search in my_list[1]:
         print('Found in Home.')
         notfound = 'False'

     else:

          print('missing')
          notfound = 'False'
</code></pre>

<p>This should do the trick</p>

<pre><code>#!/usr/bin/python3
my_list = [['noisey','pc','broken'],['smashed','window','glass']]
search = input('Enter what is going wrong: ')

for word in search.split():
    if word in my_list[0]:
        print(word,'Found in PC');
    elif word in my_list[1]:
        print(word,'Found in Home');
    else:
        print(word,"Not Found");
</code></pre>

<p>Output: </p>

<pre><code>Enter what is going wrong: noisey pc smashed accidentally
noisey Found in PC
pc Found in PC
smashed Found in Home
accidentally Not Found
</code></pre>

python python-3.x