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
- 19 votes174 views1 answer
- 14 votes195 views6 answers
- 1 vote170 views2 answers
- 2 votes175 views1 answer
- 0 vote165 views1 answer
- -1 vote236 views3 answers
- 0 vote168 views1 answer
- 0 vote171 views1 answer
- 2 votes184 views2 answers
- 0 vote177 views1 answer