I was working on a project and while looking at the randint function, I suddenly thought about blackjack. It makes sense -- you have a function, randint, that generates a random number. So I open a terminal and after a little side deviation, I'm generating a couple of cards. I realize a few things I'm missing and I build it out a bit further. Then even further. Each time realizing that there's more to this little game project than I had anticipated. I finally decide to stop at this version you see below.
There are a couple of things to note here -- first, my dealer cheats. That's intentional. The second thing to note is that I didn't take into account that an Ace can be worth one or 11. I could go back in an assign values to variables but then this would grow further and that wasn't really my point.
As always, my Python is pretty weak so don't critique me. I don't use it for much other than single functions hence the very small hacky scripts you see here. One day I'll build something... one day...