import random data = {} data2 = {} NUM = 10 i = 0 while i < NUM: data[i] = random.random() i = i + 1 #show def show_data(): print("==>> show data") i = 0 while i < NUM: print ( str(i) + ":" + str(data[i]) ) i = i + 1 def show_data2(): print("==>> show data2") i = 0 while i < NUM: print ( str(i) + ":" + str(data2[i]) ) i = i + 1 #copy def copy_data_to_data2(): print("==>> copy data to data2") i = 0