My program:
def string_splosion(str):j=1c=len(str)i=0s=''while(i<c):s=s+(str[:i+j])i=i+1print sprint("Enter a string:")
s=raw_input()
string_splosion(s)Sample input:Code
Expected output:CCoCodCode
My output:
Enter a string:
code
c co cod code
Could anyone please explain me how to remove the space and get the expected output CCoCodCode for Python2.7.12
Thanks a lot!!!