The new forums will be named Coin Return (based on the most recent vote)! You can check on the status and timeline of the transition to the new forums here.
The Guiding Principles and New Rules document is now in effect.
It might be a reserved character in Python, in which case, escaping it should do the trick. Escaping a character should be as simple as putting a backslash before it:
\$ in this case.
It might be a reserved character in Python, in which case, escaping it should do the trick. Escaping a character should be as simple as putting a backslash before it:
\$ in this case.
I keep trying this, but I guess I don't know where to put it.
Posts
Like in a terminal
$ ls
$ echo
$ Starting program:
$ 46.95
It might be a reserved character in Python, in which case, escaping it should do the trick. Escaping a character should be as simple as putting a backslash before it:
\$ in this case.
This program is basically just to multiply/add money and I don't know where to put the $ other than a print statement, but that leaves a space.
I keep trying this, but I guess I don't know where to put it.
right now my final line is like this
print 'The total is:', total
I think the problem is that the print statement is inserting a space between the literal and the variable and he doesn't want that space.
Yeah, I fixed that.
Right on both counts, thank you.
I tried "+str()" earlier and I must have put a space somewhere.
Thanks for all the replies. This can be closed