I'm very new to python and I'm having trouble with a specific question. I need to count a character or word that the user will input in python. So essentially I have to count whatever the user inputs into 'Please enter a string and please enter a substring'.I added the "h = h.lower" because we have to ensure the string is al lower case. What I have so far is:
def highlight():
h = h.lower()
print (raw_input("Please enter a string: "))
print (raw_input("Please enter a substring: "))
print("There were", "occurrences of" +str(raw_input))