Question: m _ str = input ( ' Input m: ' ) # do not change this line # change m _ str to a float

m_str = input('Input m:
') # do not change this line
# change m_str to a float
# remember you need c
# e=
5 print("e =", e) # do not change this line
100%
(2:1)
Terminal
codio@vistagranite-lotusplate: /workspace$
Collapse
Einstein
Einstein's famous equation states that the energy in an object at rest equals its mass (m) times the square of the speed of light (c).(The speed of light is 300,000,000ms.)
E=mc2
Complete the provided skeleton code so that it:
Accepts the mass of an object (remember to convert the input string to a number, in this case, a float).
Calculate the energy, e, using Einstein's equation above
Prints e
Prints e
Test 1
Check your answer against the solution with 2 different user inputs: 1(Check 1) and 3(Check 2)
 m_str = input('Input m: ') # do not change this line

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!