The correct answer resist the urge to just copy it

This preview shows page 10 - 13 out of 23 pages.

the correct answer. Resist the urge to just copy it, and instead try to adjust your expression. (Sometimes the tests will give hints about what went wrong...) Question 3.1.2. Assign the name seconds_in_a_decade to the number of seconds between midnight January 1, 2010 and midnight January 1, 2020. Note that there are two leap years in this span of a decade. A non-leap year has 365 days and a leap year has 366 days. Hint: If you're stuck, the next section shows you how to get hints.
1/18/2021 lab01_master - Jupyter Notebook localhost:8888/notebooks/Desktop/Data8/assignments/notebooks/assignments/build/sp21/lab/lab01/master/lab01_master.ipynb 11/23 In [73]: In [74]: 3.2. Comments You may have noticed these lines in the cell in which you answered Question 3.2: # Change the next line # so that it computes the number of seconds in a decade # and assigns that number the name, seconds_in_a_decade. This is called a comment . It doesn't make anything happen in Python; Python ignores anything on a line after a # . Instead, it's there to communicate something about the code to you, the human reader. Comments are extremely useful. Source: Out[73]: True Out[74]: True # TEST # It looks like you didn't account for leap years. # There were 2 leap years and 8 non-leap years in this period. # Leap years have 366 days instead of 365. seconds_in_a_decade != 315360000 # TEST seconds_in_a_decade == 315532800
1/18/2021 lab01_master - Jupyter Notebook localhost:8888/notebooks/Desktop/Data8/assignments/notebooks/assignments/build/sp21/lab/lab01/master/lab01_master.ipynb 12/23 3.3. Application: A physics experiment On the Apollo 15 mission to the Moon, astronaut David Scott famously replicated Galileo's physics experiment in which he showed that gravity accelerates objects of different mass at the same rate. Because there is no air resistance for a falling object on the surface of the Moon, even two objects with very different masses and densities should fall at the same rate. David Scott compared a feather and a hammer.

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture