'''
九九乘法表练习
'''
work = {}
one_value = (1,)
one_key = 1
work[str(one_key)] = one_value
two_key = 2
two_value = []
two_value.append(1)
two_value.append(2)
work[str(two_key)] = two_value
three_key = 3
three_value = []
three_value.append(1)
three_value.append(2)
three_value.append(3)
work[str(three_key)] = three_value
four_key = 4
four_value = []
four_value.append(1)
four_value.append(2)
four_value.append(3)
four_value.append(4)
work[str(four_key)] = four_value
temp_five = (1,2,3,4,5)
five_key = 5
five_value = []
five_value.extend(temp_five)
work[str(five_key)] = five_value
temp_six = [1,2,3,4,5,6]
six_key = 6
six_value = []
six_value.extend(temp_six)
work[str(six_key)] = six_value
temp_seven = {1,2,3,4,5,6,7}
seven_key = 7
severn_value = []
severn_value.extend(temp_seven)
work[str(seven_key)] = severn_value
temp_eight = [1,2,3,4,5,6,7,8]
eight_key = 8
eight_value = []
eight_value.extend(temp_eight)
eight_key = str(eight_key)
work[eight_key] = eight_value
temp_nice = (1,2,3,4,5,6,7,8,9)
nice_key = 9
nice_value = list(temp_nice)
nice_key = str(nice_key)
work.update({nice_key:nice_value})
_keys = work.keys()
keys = list(work.keys())
one = keys[0]
one_value = work.pop(one)
one_key = int(one)
print('{} * {} = {}'.format(one_key,one_value[0],one_key* one_value[0]))
two = keys[1]
two_value = work.pop(two)
print('{} * {} = {}'.format(two,two_value[0],int(two) * two_value[0]),end=' ')
print('{} * {} = {}'.format(two,two_value[1],int(two) * two_value[1]))
three = keys[2]
three_value = work.pop(three)
print('{} * {} = {}'.format(three,three_value[0],int(three)* three_value[0]),end=' ')
print('{} * {} = {}'.format(three,three_value[1],int(three)* three_value[1]),end=' ')
print('{} * {} = {}'.format(three,three_value[2],int(three)* three_value[2]))
four = keys[3]
four_value = work.pop(four)
print('{} * {} = {}'.format(four,four_value[0],int(four)* four_value[0]),end=' ')
print('{} * {} = {}'.format(four,four_value[1],int(four)* four_value[1]),end=' ')
print('{} * {} = {}'.format(four,four_value[2],int(four)* four_value[2]),end=' ')
print('{} * {} = {}'.format(four,four_value[3],int(four)* four_value[3]))
five = keys[4]
five_value = work.pop(five)
print('{} * {} = {}'.format(five,five_value[0],int(five)* five_value[0]),end=' ')
print('{} * {} = {}'.format(five,five_value[1],int(five)* five_value[1]),end=' ')
print('{} * {} = {}'.format(five,five_value[2],int(five)* five_value[2]),end=' ')
print('{} * {} = {}'.format(five,five_value[3],int(five)* five_value[3]),end=' ')
print('{} * {} = {}'.format(five,five_value[4],int(five)* five_value[4]))
six = keys[5]
six_value = work.pop(six)
print('%s * %s = %s'%(six,six_value[0],int(six)*six_value[0]),end=' ')
print('%s * %s = %s'%(six,six_value[1],int(six)*six_value[1]),end=' ')
print('%s * %s = %s'%(six,six_value[2],int(six)*six_value[2]),end=' ')
print('%s * %s = %s'%(six,six_value[3],int(six)*six_value[3]),end=' ')
print('%s * %s = %s'%(six,six_value[4],int(six)*six_value[4]),end=' ')
print('%s * %s = %d'%(six,six_value[-1],int(six)*six_value[5]))
seven = keys[6]
seven_value = work.pop(seven)
print(f'{seven} * {severn_value[0]} = {int(seven)*severn_value[0]}',end=' ')
print(f'{seven} * {severn_value[1]} = {int(seven)*severn_value[1]}',end=' ')
print(f'{seven} * {severn_value[2]} = {int(seven)*severn_value[3]}',end=' ')
print(f'{seven} * {severn_value[3]} = {int(seven)*severn_value[4]}',end=' ')
print(f'{seven} * {severn_value[4]} = {int(seven)*severn_value[5]}',end=' ')
print(f'{seven} * {severn_value[5]} = {int(seven)*severn_value[5]}',end=' ')
print(f'{seven} * {severn_value[6]} = {int(seven)*severn_value[6]}')
eight = keys[7]
eight_value = work.pop(eight)
print('{} * {} = {}'.format(eight,eight_value[0],int(eight)*eight_value[0]),end=' ')
print('{} * {} = {}'.format(eight,eight_value[1],int(eight)*eight_value[1]),end=' ')
print('{} * {} = {}'.format(eight,eight_value[2],int(eight)*eight_value[2]),end=' ')
print('{} * {} = {}'.format(eight,eight_value[3],int(eight)*eight_value[3]),end=' ')
print('{} * {} = {}'.format(eight,eight_value[4],int(eight)*eight_value[4]),end=' ')
print('{} * {} = {}'.format(eight,eight_value[5],int(eight)*eight_value[5]),end=' ')
print('{} * {} = {}'.format(eight,eight_value[6],int(eight)*eight_value[6]),end=' ')
print('{} * {} = {}'.format(eight,eight_value[7],int(eight)*eight_value[7]))
'''
nice = keys[8]
nice_value = work.pop(nice)
print('{} * {} = {}'.format(nice,nice_value[0],int(nice)*nice_value[0]),end=' ')
print('{} * {} = {}'.format(nice,nice_value[1],int(nice)*nice_value[1]),end=' ')
print('{} * {} = {}'.format(nice,nice_value[2],int(nice)*nice_value[2]),end=' ')
print('{} * {} = {}'.format(nice,nice_value[3],int(nice)*nice_value[3]),end=' ')
print('{} * {} = {}'.format(nice,nice_value[4],int(nice)*nice_value[4]),end=' ')
print('{} * {} = {}'.format(nice,nice_value[5],int(nice)*nice_value[5]),end=' ')
print('{} * {} = {}'.format(nice,nice_value[6],int(nice)*nice_value[6]),end=' ')
print('{} * {} = {}'.format(nice,nice_value[7],int(nice)*nice_value[7]),end=' ')
print('{} * {} = {}'.format(nice,nice_value[8],int(nice)*nice_value[8]))
'''
nice = keys[-1]
nice_value = work.get(nice)
format_str = '{} * {} = {}'
print(format_str.format(nice,nice_value[0],int(nice)*nice_value[0]),end=' ')
print(format_str.format(nice,nice_value[1],int(nice)*nice_value[1]),end=' ')
print(format_str.format(nice,nice_value[2],int(nice)*nice_value[2]),end=' ')
print(format_str.format(nice,nice_value[3],int(nice)*nice_value[3]),end=' ')
print(format_str.format(nice,nice_value[4],int(nice)*nice_value[4]),end=' ')
print(format_str.format(nice,nice_value[5],int(nice)*nice_value[5]),end=' ')
print(format_str.format(nice,nice_value[6],int(nice)*nice_value[6]),end=' ')
print(format_str.format(nice,nice_value[7],int(nice)*nice_value[7]),end=' ')
print(format_str.format(nice,nice_value[8],int(nice)*nice_value[8]))
'''
1 * 1 = 1
2 * 1 = 2 2 * 2 = 4
3 * 1 = 3 3 * 2 = 6 3 * 3 = 9
4 * 1 = 4 4 * 2 = 8 4 * 3 = 12 4 * 4 = 16
5 * 1 = 5 5 * 2 = 10 5 * 3 = 15 5 * 4 = 20 5 * 5 = 25
6 * 1 = 6 6 * 2 = 12 6 * 3 = 18 6 * 4 = 24 6 * 5 = 30 6 * 6 = 36
7 * 1 = 7 7 * 2 = 14 7 * 3 = 28 7 * 4 = 35 7 * 5 = 42 7 * 6 = 42 7 * 7 = 49
8 * 1 = 8 8 * 2 = 16 8 * 3 = 24 8 * 4 = 32 8 * 5 = 40 8 * 6 = 48 8 * 7 = 56 8 * 8 = 64
9 * 1 = 9 9 * 2 = 18 9 * 3 = 27 9 * 4 = 36 9 * 5 = 45 9 * 6 = 54 9 * 7 = 63 9 * 8 = 72 9 * 9 = 81
'''