Engineering
Engineering, 03.03.2020 17:28, ashleyaparicio7116

Please write the following code in Python 3. Also please show all output(s) and share your code.

Below is a for loop that works. Underneath the for loop, rewrite the problem so that it does the same thing, but using a while loop instead of a for loop. Assign the accumulated total in the while loop code to the variable sum2. Once complete, sum2 should equal sum1.

sum1 = 0

lst = [65, 78, 21, 33]

for x in lst:
sum1 = sum1 + x

answer
Answers: 3

Other questions on the subject: Engineering

image
Engineering, 04.07.2019 18:20, 3076850
Prove the equivalence between the two statements of the 2nd law of thermodynamics (i. e., a violation of one statement leads to the violatio the other statement)
Answers: 2
image
Engineering, 04.07.2019 19:10, kelseiroll9759
Ahelical coil spring has a mean diameter of 50 mm, a wire diameter of 5.5 mm and is wound with a pitch of 10 mm. the spring steel has an ultimate strength of 1250 mpa. find the force needed to compress the spring solid and the wire stress in this condition. state whether the spring will return to its initial length.
Answers: 1
image
Engineering, 04.07.2019 19:20, natalie2sheffield
Acompressor compresses a gas, a pump compresses a liquid. for a given pressure ratio, why does it take more work to compress a gas in a compressor than a liquid in a pump? a)- for a given pressure ratio the average specific volume for a gas is much higher than the average specific volume for a liquid. b)- there is no difference. the only difference is the amount of heat generated (not work) c)- for a given pressure ratio the average volurge for a gas is much higher than the average volume for a liquid. d)-there is no difference
Answers: 3
image
Engineering, 06.07.2019 03:20, loveuncondition
Not a characteristic property of ceramic material (a) high temperature stability (b) high mechanical strength (c) low elongation (d) low hardness
Answers: 2
Do you know the correct answer?
Please write the following code in Python 3. Also please show all output(s) and share your code.

Questions in other subjects:

Konu
Social Studies, 27.09.2021 02:00
Konu
Mathematics, 27.09.2021 02:00