-4
I’m having a little trouble with this exercise. Here is my code:
python
num = float(input('Digite o 1 numero: '))
guarda_maior = num
guarda_menor = num
for n in range(1, 10):
num = float(input(f'Digite o valor de {n}: '))
if num > guarda_maior:
num = guarda_maior
elif num < guarda_menor:
num = guarda_menor
print(f'{guarda_maior}, {guarda_menor}')
If anyone can help me. Grateful.
Wow, I was trying to lot of thing hahahaha.
– Douglas Cortez
Slight lack of attention...
– Douglas Cortez
Thank you very much, João.
– Douglas Cortez
You’re welcome, Douglas
– João Emanuel da Silva Mendonça