Artificial intelligent assistant

辞書からキーと値を順に取り出して処理する * kg 'Alice': 44.5 'Bob': 78.2 'Carol': 50.0 * * 16.5 * Alice 44.5 7.3425 Bob 78.2 12.903 Carol 50.0 8.25 weights = {'Alice': 44.5, 'Bob': 78.2, 'Carol': 50.0} for k, v in weights.items(): print('%s :%s' % (k, v))



>
> 16.5




for k, v in weights.items():
print('%s :%s' % (k, v))


`print` `v` `print`


for k, v in weights.items():
weight_moon = #
print('%s :%s' % (k, v)) # weight_moon


※ `print`

xcX3v84RxoQ-4GxG32940ukFUIEgYdPy 20705b48a4e824e11066c3c08259cc2d