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 vote122 views1 answer
- 1 vote104 views2 answers
- 0 vote104 views1 answer
- 0 vote101 views1 answer
- 3 votes106 views2 answers
- 13 votes108 views4 answers
- 0 vote113 views1 answer
- 18 votes148 views3 answers
- 2 votes98 views2 answers
- 1 vote97 views2 answers