'for else' fix

small logic and syntax fix
pull/26/head
Marek Madejski 6 years ago committed by GitHub
parent d2e0916c04
commit b1abf6b7f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -51,7 +51,7 @@ for i in x:
if i == 0:
break
else:
print('found')
print('not found')
'''
# Equivalent of:
@ -60,8 +60,8 @@ for i in x:
if i == 0:
flag = True
break
if flag
print('found')
if not flag:
print('not found')
'''
# Basic 'while' loop:

Loading…
Cancel
Save