Learn Python - 9 I can't print R$ [total_cost]

I want to print R$ + [total_cost]. How can I do this?

I tried:
print “R$” + total_cost
print “R$” total_cost
print “R$” print total_cost


1 Like

Same way you do str+int/float concatenation in any part of Python:


This will print your string concatenated with your int/float

1 Like

Thanks, 825orion. I don’t arrived this command yet. =)