Explore Westonci.ca, the premier Q&A site that helps you find precise answers to your questions, no matter the topic. Our platform provides a seamless experience for finding precise answers from a network of experienced professionals. Experience the ease of finding precise answers to your questions from a knowledgeable community of experts.
Sagot :
THIS IS FOR PYTHON
total = 0
for i in range(7, 35):
total += i
print(i)
print(total)
I forgot the reason but python always stops one number before your desired value. So that's why it's 35
The loop that finds the sum of the numbers between 7 and 34 i2 as follows:
x = 0
for i in range(7, 35):
x += i
print(x)
The code is written in python.
The variable x is initialise with the value zero.
For loop is used to loop through the range of value 7 to 35, excluding 35.
The looped values are then added to the variable x
The final sum is then printed out using the print statements in python.
learn more on loop: https://brainly.com/question/21897044?referrer=searchResults
We appreciate your time on our site. Don't hesitate to return whenever you have more questions or need further clarification. Thanks for using our platform. We aim to provide accurate and up-to-date answers to all your queries. Come back soon. We're here to help at Westonci.ca. Keep visiting for the best answers to your questions.