LABELLING NUMBERS
0 EVEN
1 ODD
2 EVEN
3 ODD
def label_numbers(L):
print("Labelling numbers")
for x in L:
if x % 2 == 0:
print(x, "EVEN")
else:
print(x, "ODD")
def main():
L = [0, 1, 2, 3]
label_numbers(L)
main()
Comments
Leave a comment