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 =
s = "jay" list = [ i for i in s ]
It you print list you will get:
list
['j','a','y']
new_s = "".join(list)
If you print new_s:
new_s
"jay"