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
- 0 vote216 views1 answer
- 1 vote226 views1 answer
- 2 votes205 views1 answer
- 1 vote210 views2 answers
- 5 votes224 views2 answers
- 2 votes282 views1 answer
- 1 vote206 views1 answer
- 1 vote214 views1 answer
- 1 vote177 views1 answer
- 0 vote235 views1 answer