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,”)”)

1st Oct 2019, 8:18 PM
Safanah
2 Answers
0
Hey. Instead of using print ('foo
#x27;, cost, 'bar') try print('foo
#x27; +str(cost) + 'bar') Hope this helps. Cheers. C
1st Oct 2019, 8:44 PM
ChrA
ChrA - avatar
0
use the sep keyword in the print function e.g print('blah', 'blah', 'blah') print('blah', 'blah', 'blah', sep='')
1st Oct 2019, 9:05 PM
rodwynnejones
rodwynnejones - avatar