1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
lbvjy [14]
3 years ago
10

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

Engineering
1 answer:
maksim [4K]3 years ago
6 0

Answer:

sum2 = 0

counter = 0

lst = [65, 78, 21, 33]

while counter < len(lst):

   sum2 = sum2 + lst[counter]

   counter += 1

Explanation:

The counter variable is initialized to control the while loop and access the numbers in <em>lst</em>

While there are numbers in the <em>lst</em>,  loop through <em>lst</em>

Add the numbers in <em>lst</em> to the sum2

Increment <em>counter</em> by 1 after each iteration

You might be interested in
Calculate the density of the FCC nickel lattice with an interstitial hydrogen in the centered position of the unit cell. You may
Anastaziya [24]

Answer:

\rho=8907.94\ Kg/m^3

Explanation:

Given that

a=3.524 A

At.Wt. ,M= 58.7 g/mole,

 For FCC

 Z = 4

4r=\sqrt2\ a

The density given as

\rho=\dfrac{ZM}{N_Aa^3}

\rho=\dfrac{4\times 58.7\times 10^{-3} }{ 6.023\times 10^{23}\times (3.524\times 10^{-10})^3}

\rho=8907.94\ Kg/m^3

So the density is \rho=8907.94\ Kg/m^3

4 0
3 years ago
10. What does a profile of a river from its headwaters to its mouth typically show?
irina1246 [14]

Answer:

c. an abrupt increase followed by a gradual decrease

Explanation:

At the headwater, the flow gradient starts high but then slowly decreases as the river moves downstream to its mouth.

3 0
3 years ago
What entrepreneurial activities do you know?are you capable of doing entrepreneurial activities
kherson [118]

Answer:

.,m

Explanation:

.,m

5 0
3 years ago
Which of following are coding languages used in controlling a robot? *
Bess [88]

Answer:

C/C++

Explanation:

C/C++

7 0
3 years ago
Much of the workd went to bed hungry
Marysya12 [62]
The workers went to bed hungry probably because they are hard workers and so didn’t want to eat because they didn’t want to take break┌(; ̄◇ ̄)┘
7 0
3 years ago
Other questions:
  • If a particle moving in a circular path of radius 5 m has a velocity function v = 4t2 m/s, what is the magnitude of its total ac
    15·2 answers
  • A hollow, spherical shell with mass 2.00kg rolls without slipping down a slope angled at 38.0?.
    15·1 answer
  • PLEASE HELP ASAP!!! Thanks
    11·1 answer
  • How do engineering and technology impact the natural world and environment
    6·1 answer
  • 2.
    7·1 answer
  • Fluid systems can distribute pressure unequally to all points in a system.<br><br> True<br> False
    15·1 answer
  • Which component found in fertilizer is a known cancer-causing agent?
    11·2 answers
  • Lance is the sitting judge in the local family court. What education might have been
    10·1 answer
  • Once you get the answer correct first i will mark you brainliest!!
    15·2 answers
  • What are the most used electronic tools for electronic works?​
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!