Write a code on even and odd numbers
numbers=[int(x) for x in input("Enter numbers separated by space: ").split(' ')] for number in numbers: if number %2==0: print(f"{number} is even") else: print(f"{number} is odd")
Need a fast expert's response?
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Comments
Leave a comment