Skip to content

Instantly share code, notes, and snippets.

@Vishakha263
Last active April 10, 2019 14:40
Show Gist options
  • Save Vishakha263/259df0bd76e6293774d94690889442a4 to your computer and use it in GitHub Desktop.
Save Vishakha263/259df0bd76e6293774d94690889442a4 to your computer and use it in GitHub Desktop.
types = ['broken', 'intact', 'crushed']
collected_shells = 0
for shell in types:
if shell=="broken":
continue
else:
collected_shells+=1
print(collected_shells)
break
@muddlebee
Copy link

types = ['broken', 'intact', 'crushed']
collected_shells = 0
for shell in types:
if shell=="broken":
continue
else:
collected_shells+=1
print(collected_shells)
break

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment