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



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


This will print your string concatenated with your int/float


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