Oi gente, eu não sei como fazer para o computador executar apenas uma operação dentre as listadas, por isso, travei nesse desafio e meu código ficou assim:
N_1 = float(input('Digite o primeiro número: '))
N_2 = float(input('Digite o segundo número: '))
operação = int(input('Digite "1" para somar, "2" para subtrair, "3" para multiplicar e "4" para dividir N_2 por N_1: '))
if operação == 1:
N_3 = N_2 + N_1
if N_3 % 2 == 0 and N_3 > 0 and N_3 % 1 == 0:
print(f'{N_3} é par, positivo e inteiro.')
elif N_3 % 2 != 0 and N_3 > 0 and N_3 % 1 == 0:
print(f'{N_3} é ímpar, positivo e inteiro.')
elif N_3 % 2 == 0 and N_3 < 0 and N_3 % 1 == 0:
print(f'{N_3} é par, negativo e inteiro.')
elif N_3 % 2 == 0 and N_3 > 0 and N_3 % 1 != 0:
print(f'{N_3} é par, positivo e decimal.')
elif N_3 % 2 == 0 and N_3 < 0 and N_3 % 1 != 0:
print(f'{N_3} é par, negativo e decimal.')
elif N_3 % 2 != 0 and N_3 < 0 and N_3 % 1 != 0:
print(f'{N_3} é ímpar, negativo e decimal.')
elif N_3 % 2 != 0 and N_3 > 0 and N_3 % 1 != 0:
print(f'{N_3} é ímpar, positivo e decimal.')
else:
N_3 & 2 != 0 and N_3 < 0 and N_3 % 1 != 0
print(f'{N_3} é ímpar, negativo e inteiro.')
Podem me dar umas dicas de como dar continuidade a ele por favor?