← go back

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?")
May 2, 2024, 2:56 PM
4 0 0

Comments