Question: code in Python Part 5: Programming Practice For reference, here is the original program from Part 2: import board import digitalio import time led =

code in Python code in Python Part 5: Programming Practice For reference, here is the

Part 5: Programming Practice For reference, here is the original program from Part 2: import board import digitalio import time led = digitalio.DigitalInOut (board.013) led.direction = digitalio.Direction. OUTPUT while True: led.value = True time. sleep(0.5) led.value = False time. sleep(0.5) Take this code as a starting point and modify it to do the following: 1. Print out your full name to the serial console. 2. Prompt the user at the console to enter the desired sleep time (in seconds) If the response value is less than 0.1 seconds or greater than 3 seconds, then display a warning message and prompt the user again. Keep doing this until the time value is within the allowed range. 3. Have your program blink the LED five (5) times in a row, using the time value entered by the user for both sleep statements. Hint: What kind of loop statement would be most appropriate for doing this

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!