>>790
python入門者なんでサンプルプログラム見ながら作ってみた
間違ってたらスマソ

list = []
for n in range(1,6):
 list.append(n)
list = map(str,list)#mapでlist中のintをstrにキャストする
print ( " ".join(list) )

もしくは

list = []
for n in range(1,6):
 list.append(str(n))#文字列としてlistに保存する
print ( " ".join(list) )