I started two months ago with coding so I am fairly new and I am working on a codewars challenge where I have to capitalize every word in a sentence and I am kinda lost right now.
I want the "t" in "aren't" to be small but my out put always comes out to "How Can Mirrors Be Real If Our Eyes Aren'T Real".
Additionally when I try to insert the a print method it says 'string' is not defined. Can someone explain me what I did wrong.
If possible don't tell me the solution but give me a hint on how to solve it.
This is my code
def to_jaden_case(string):
string = ["how "+"can "+"mirrors "+"be "+"real "+"if "+"our "+"eyes "+"aren't
"+"real "]
for letter in string:
output = letter.title()
return output