Question: Please solve the following in python. Thank you turn_on_led_seconds(num_seconds, pin_led) will turn on pin_led for num_seconds :returns: integer of
Please solve the following in python. Thank you
" " "
" " "
turn_on_led_seconds(num_seconds, pin_led) will turn on pin_led for num_seconds
:returns: integer of the time in seconds that pin_led was on for
" " "
" " "
turn_off_led_seconds(num_seconds, pin_led) will turn off pin_led for num_seconds
:returns: integer of the time in seconds that pin_led was off for
" " "
def main() -> None:
" " "
main() is the main function that will call other functions to implement the following:
1. turn on the LED for some amount of time.
2. turn off the LED for some amount of time.
3. repeat the above two steps 7 times in total
the above steps will generally be implemented by functions defined before the main() function.
" " "
" " " TODO: put your calls to the functions here so that we will repeat them 7 times
" " "
" " " the below is a call to execute the program, you do not need to modify it. " " "main()
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
