While trying basic python scripting in eclipse IDE, I am encountering problem: I just tried a simple code, which I found online:
var = 'hello , world'
print "%s" % var
var.strip(',')
print "%s" % var
The result i am getting is
hello , world
hello , world
Also i tried with replace command, but the result remain unchanged
var = 'hello , world'
print "%s" % var
var.replace(',', '')
print "%s" % var
The result obtained is
hello , world
hello , world
I could not figure out were I am making mistake.