(Aug-02-2017, 08:40 AM)wikedkid Wrote: if ask=="Tell me a joke":I tried this but it says indentation error for break but when i indent it it says it breaks the loop
print('Caroline has a small nostril')
while True:
ask=input("")
if ask==" ":
break
(Aug-02-2017, 08:41 AM)buran Wrote: Sometimes error is on previous line(s). In this case - on line 4. But even after you fix it, indentation on line 5 is incorrect and you need something on line 9 (i.e. body of the else clause
I originally tried it with the == on line 4 it still says invalid syntax
EDIT: I dunno why but I retried your way and it worked the second time, maybe a typo i didnt notice in my correcting it, what i want the else to do is loop it back to a previous spot in the code like before or after the Enter your name part