S = [2 ** x for x in range(-2, 22)]
print(sum(S))
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Verified answer
S = [2 ** x for x in range(-2, 22)]
print(sum(S))