--Originally published at Carolina's Blog Site
So my goal for this rainy afternoon was to write a program that simulated a fortune cookie. I did it using lists, the import statement and the while statement. So…when you press enter, the program displays (prints) 1 of 5 unique fortunes, randomly, each time.
![](https://pixel.wp.com/b.gif?host=carolinasblogsite.wordpress.com&blog=115369299&%23038;post=378&%23038;subd=carolinasblogsite&%23038;ref=&%23038;feed=1)