Generation

generate functionSat, 24 Dec 2022

Even odd number using for loop

Script def evenodd(num): for i in num: if i % 2 == 0: print("even number", i) else: print("odd number", i) evenodd([1, 2, 3, 4, 5, 6, 7, 8, 9, 10])

Questions about programming?Chat with your personal AI assistant