I have the task of creating a search program in python (or c++ or bash) I'm really not that experienced when it comes to coding so if this isn't on the right track at all, sorry!
The user will need to type in a keyword I.E "Report" and the function will need to look through all directories for files with the name of "report". This script I've made up here seems to work up until line 5. Could anyone help me out? Thank you!
import os
keyword = raw_input ("What would you like to search for?")
os.chdir("/home/noob")
for files in os.listdir("."):
if files(keyword):
print files