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
- 1 vote119 views1 answer
- 0 vote112 views2 answers
- 0 vote146 views1 answer
- 0 vote107 views1 answer
- 0 vote116 views1 answer
- 1 vote124 views1 answer
- -1 vote112 views1 answer
- 0 vote114 views2 answers
- 1 vote109 views1 answer
- 9 votes129 views2 answers