I'm new in programming. I was doing this exercise: Write a function called showNumbers that takes a parameter called limit. It should print all the numbers between 0 and limit with a label to identify the even and odd numbers. My solution is this one:
def showNumbers(limit):
num = 0
while num <= limit:
if num % 2 == 0:
print(f'{num} EVEN')
else:
print(f'{num} ODD')
num += 1
It's returning everything correct but it's also returning a None in the end. How can I remove it?