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 RĂ©ponses
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='')