Instead of: newlist = [] for i in range(1, 100): if i % 2 == 0: newlist.append(i**2)
Instead of: newlist = [] for i in range(1, 100): if i % 2 == 0: newlist.append(i**2)
0
Source: betterprogramming.pub
- 4 votes161 views3 answers
- 15 votes168 views3 answers
- 23 votes160 views6 answers
- 2 votes182 views1 answer
- 64 votes223 views5 answers
- 0 vote172 views1 answer
- 2 votes212 views3 answers
- 2 votes179 views1 answer
- 1 vote159 views1 answer
- 2 votes171 views1 answer