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