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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started