gilbert189 — 5/2/2024, 2:56:40 PM

TIL: for loops in Python supports else

for i in ["foo", "bar", "baz"]:
	if "z" in i:
		continue
	print(i)
else:
	print("this is a thing?")
♥ 4 ↩ 0 💬 0 comments

comments

no comments