1. From what I see, there are no indentations
2. There is a space between "print" and the parenthesis calling the function
3. I don't know if this is what you want, but it will continue to print even after
i == 'apple'
Here's a better way to do this
while i != 'apple': #Will continue to loop until i is equal to "apple"
pass #pass so there are no syntax errors
print(i) #When the while loop finishes, print will be executed
You could also use a break (Though I think the first example of code is better)
while True:
if i == apple:
print(i)
break #Break out of the while loop