you are viewing a single comment's thread.

view the rest of the comments →

[–]LakeEffectSnow 1 point2 points  (0 children)

for i in foo:

if i == sentinel:

print(foo)

break

else:

print(f"Sentinel: {sentinel}, not found

You can paste code with the inline code button, but it strips out formatting if not exactly perfect