In: Computer Science
A light year is the distance light travels in 1 year.
Light travels at 3*108 meters* sec-1.
Write a program that calculates and displays the number of meters light travels in a year.
Thanks for the question. Below is the code you will be needing. Let me know if you have any doubts or if you need anything to change. Let me know for any help with any other questions. Thank You! =========================================================================== c = 3 * 10 ** 8 # speed of light seconds_in_year = 365 * 24 * 60 * 60 # total seconds in a year distance = c * seconds_in_year # distance = speed* time print('Light travels {:,} meters in a year.'.format(distance))
================================================================