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


#1

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

…nothing


#2

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

print("R$"+str(total_cost))

This will print your string concatenated with your int/float


#3

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