summaryrefslogtreecommitdiff
path: root/doc/data/messages/c/consider-using-generator/bad.py
blob: 260ec97d321368df886f249f0da4151427ee8e22 (plain)
1
2
3
4
5
list([0 for y in list(range(10))])  # [consider-using-generator]
tuple([0 for y in list(range(10))])  # [consider-using-generator]
sum([y**2 for y in list(range(10))])  # [consider-using-generator]
max([y**2 for y in list(range(10))])  # [consider-using-generator]
min([y**2 for y in list(range(10))])  # [consider-using-generator]