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?
– Elias Oliveira
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!
– Vinicius Araújo
Good brother! Success in your learning
– Elias Oliveira