Python3 my tips リスト内包表記 sum()

Python3コード

>>> sum([i for i in range(1, 10+1)])
55
>>> x = [1.1, 2.2, 3.3, 4.4, 5.5, 6.6, 7.7, 8.8, 9.9, 10.10]
>>> x
[1.1, 2.2, 3.3, 4.4, 5.5, 6.6, 7.7, 8.8, 9.9, 10.1]
>>> sum([i for i in x])
59.6