gilbert189 @gilbert189

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
0

comments