Doubt about functions

Asked

Viewed 35 times

0

Good evening, sorry if anything related was posted at any time. I tried to search but did not succeed. I am trying to do a function and in the result, be printed the data of the variables, but inform that it is not set.

def calcula(salario,percentual):
    valor_do_aumento = (salario/100)*percentual
    salario_novo = (salario + (salario/100)*percentual)

salario = float(input('Digite o salario: '))
percentual = float(input('Qual aumento: '))

print(salario_novo)
  • Took a look at the links above and managed to find the solution?

  • 1

    Elias, thank you very much, can understand, I removed the parameters inside the parentheses and I used the new salario_Return, thereby can print the return!

  • Good brother! Success in your learning

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.