In this video we’ll place our state images on the screen, and set up a randomization sequence that flashes a random state up onto the screen every time the program runs.
We’ll start out by creating a python list of all our state names. Then we’ll generate a random number in the range of the number of states we have. Next we’ll use that random number to call a list item number from our list.
Finally we’ll output the image itself on our app.
Easy!
Add comment