Write a Python program segment, using a loop, to calculate and print the sum of the odd integers from 20 to 120. (Hint: 21 23 25
. . . 117 119)
1 answer:
Answer:
for x in range(20,120):
if x % 2 == 0:
continue
print(x)
Explanation:
in a range of 20 to 120 it does the following, if x is divisible by two as an int, then try again with a new number. If not, print that number.
You might be interested in
A) Store those building in Normal template
Answer:
Search for the games in the search bar
Explanation:
Make another account. But u cant get into brainly unless u r over 26 or something.
I think it’s the last one
Answer:
Where are the following? You have to post the full question if you want help.
Explanation: