Question: RASPBERRY Pi 3 / SENSE HAT! Part I - Create a python program that prompts the user to enter a number between 1 and 5.
RASPBERRY Pi 3 / SENSE HAT!
Part I - Create a python program that prompts the user to enter a number between 1 and 5. Then the program will light up a dot at various location depending on the value of the input. This will be using control-flow if-elif-else that we covered in class this week: Control Flow - If and Else.
1 = top left corner
2 = top right corner
3 = bottom left corner
4= bottom right corner
5 = center
Part II - Use the program in Part A and put it in a loop to execute it N times using for loop structure. The program will start out asking the user how many cycles (N) to run.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
