So I'm having a hard time with syntax mostly because learning any sort of new language is pretty challenging to me. Still, I've spend a little bit of time here and there plugging away. The MIT open courses are helpful but without the lectures that the assignments presume you've had, they're a little awkward. But with the resources in the course, the web, the library, YouTube, etc. things are still moving. I'm just going to have to keep at it so the syntax sticks in my mind.
Anyway, a couple weekends ago I decided I wanted to write a little random number game. I could probably still do that relatively easily on a computer running basic that I haven't used in 30 years but I was immediately humbled that I didn't have that skill in Python. Knowing what I wanted to do, as I read, searched, and watched I was able to put all the pieces together and wrote a short program that asks you to select a maximum number for the range then randomly chooses a number for you to guess. It also calculates the maximum number of guesses it should take and makes sure valid entries are made.
Funny thing is since the language is still new to me, even though I didn't copy any part of the program, I'm still not totally fluent in my own program. I will be, I just need to keep immersed in the language. I put several comments in to keep me reminded of what I have going on. For anyone interested and for any constructive criticism, here it is:
One small change and comments removed:
"I would rather claim to be an uneducated man than be mal-educated and claim to be otherwise." - Wookie 03:16