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
- 3 votes198 views2 answers
- 14 votes203 views6 answers
- 17 votes197 views3 answers
- 16 votes189 views1 answer
- 0 vote195 views1 answer
- 49 votes201 views2 answers
- 0 vote190 views2 answers
- 1 vote193 views2 answers
- 0 vote195 views1 answer
- 103 votes190 views6 answers