str1="" str_list=[] for i in range(5): N=input("please enter the number:") str1+=str(N) str_list.append(str(N)) print str1 print str_list