to remove space from string

 a = "this is a text with space"

b = a.replace(" ","")
print(b)

ans: thisisatextwithspace

No comments:

Post a Comment