concatinating strings to int... or something :)
None at none.none
Sun Jul 25 15:27:56 CEST 2004
(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
mon = int(raw_input("get number"))
barf = 2 * mon
arf = "you win $"
print arf, barf
More information about the Python-list