-5
I want to identify odd numbers, but leave with a print formatting with no whitespace
EX:"These are the odd ones: (1, (), 3, '')" I want you to show it like this: "These are the odd ones: 1, 3,"
Follow the code for better understanding:
soma=0
a=int(input('Diga um número:\n'))
a1=int(input(''))
a2=int(input(''))
a3=int(input(''))
if a%2==1:
soma+=a
b=a
else:
soma+=0
b=()
if a1%2==1:
soma+=a1
b1=a1
else:
soma+=0
b1=()
if a2%2==1:
soma+=a2
b2=a2
else:
soma+=0
b2=()
if a3%2==1:
soma+=a3
b3=a3
else:
soma+=0
b3=('')
print(f'Soma dos ímpares: {soma}')
print(f'Esses são os ímpares:{b,b1,b2,b3}')