You will write three small functions about electromagnetic waves. Use .
The idea. The frequency is . The region of the spectrum depends on the wavelength. A signal that travels at needs the time distance divided by .
Your tasks.
frequency, return the frequency in hertz for a wavelength in metres.region, return the name of the region: "radio" for a wavelength of or more, then "infrared", "visible", "ultraviolet" for or more, "X-ray" for or more, and "gamma ray" below that. Visible light runs from to .travel_time, return the time in seconds for a signal to cross a distance in metres.Run your code once to unlock the worked solution.
Have you tried it?
Do the tasks in the editor first, and run the checker after each one. Its hints help when a check fails. When you are ready, compare your code with this solution.
Log in to join the discussion.
Loading…