I am very new to python, and I am trying to make a program that allows a user to enter three numbers and the program will tell them the sum, average, product, and the odd numbers of the numbers. I just can't seem to find a way to get the odd numbers listed on one line. Here is what I have:
def main():
x, y, z = eval(input("Enter three integers, each seperated by a comma: "))
Sum = (x+y+z)
Average = (x+y+z)/3
Product = (x*y*z)
print("Sum:", Sum)
print("Average:", Average)
print("Product:", Product)
print("Odd Numbers: ")
if (x % 2) != 0:
print(x)
if (y % 2) != 0:
print(y)
if (z % 2) != 0:
print(z)
main()