I would like to know how I can resolve this.
input('Acabei de encontrar a receita ')
print('voce vai precisar dos seguindos ingredientes')
num1 = int('6')
print(num1)
print('Kg de Farinha')
num2 = int('3')
print(num2)
input('Unidades de ovos')
print('')
print('ou add no carrinho')
print('Ok, vou calcular')
print('Voce vai facar com')
calculo = farinha - num1
calculo2 = ovos - num2
print('')
print('Voce vai ficar com {} de farinha e {} de ovos'.format(calculo, calculo2))
As you can see, the number of flour is separate from the flour phrase because I need to use the number of flour to subtract with what I have, but if I put 2 kg of flour, for example, it will not recognize as number and will give error. I wanted to know how I can use 2 different commands in the same line example:
num1 = int(print('3') print('de farinha')