I am doing a program that changes a number in base 10 to base 7, so i did this :
num = int(raw_input(\"\")) mod = int(0) list = [] while num> 0: mod =
Convert the list to a string, and replace the white spaces.
strings = ['hello', 'world'] print strings >>>['hello', 'world'] print str(strings).replace(" ", "") >>>['hello','world']