W
WIdgeteye
(Simple test code below)
What I am trying to do is print;
you win $50
what I am getting is;
you win $ 50 with the space between the $ and 50.
I tried; print arf + barf
but it tells me you can't concat strings to numbers.
I have read the tutorial (and probably missed the answer)
could someone please tell me how to get rid of that
infernal space?
Thanks.
mon = int(raw_input("get number"))
barf = 2 * mon
arf = "you win $"
print arf, barf
What I am trying to do is print;
you win $50
what I am getting is;
you win $ 50 with the space between the $ and 50.
I tried; print arf + barf
but it tells me you can't concat strings to numbers.
I have read the tutorial (and probably missed the answer)
could someone please tell me how to get rid of that
infernal space?
Thanks.
mon = int(raw_input("get number"))
barf = 2 * mon
arf = "you win $"
print arf, barf