0
Guys I don’t know why there’s a space in my output could you please help
Print(“The trip to Florida will cost$”,cost, “CAD (or”, variable,”)”)
2 Answers
0
Hey.
Instead of using print ('foo#x27;, cost, 'bar') try
print('foo#x27; +str(cost) + 'bar')
Hope this helps. Cheers. C
0
use the sep keyword in the print function e.g
print('blah', 'blah', 'blah')
print('blah', 'blah', 'blah', sep='')