I'm starting to study Python functions, and I have a problem that it seems correct to me but it isn't working.
I want to show two informations typed. Jogador (player) and Gols (Score), when I type the 2 inputs it works very well, but I want to have two default parameters and this is not working, can someone help me, what am I doing wrong? `
def ficha(nome="<desconhecido>", gols=0):
return f'O jogador {nome} fez {gols} gol(s) no campeonato.'
jog = input('Nome do jogador: ')
gol = input('Número de gols: ')
print(ficha(jog, gol))
`
I'm expecting to shows the default parameters when nothing is typed by the user.