How do I rectify the error "SyntaxError: 'continue' not properly in loop " in python?
matches = re.search("Temp =\s+([0-9.]+)", output)
if ( not matches):
time.sleep(0)
continue
How do I rectify the error "SyntaxError: 'continue' not properly in loop " in python?
matches = re.search("Temp =\s+([0-9.]+)", output)
if ( not matches):
time.sleep(0)
continue
continue
is allowed only in for
or while
loops. Looks like it's redundant here. In case this is part of a loop, please post that part of your code as well.