I'm Brazilian by birth and Texan by choice. During the day, I work in PR at Rackspace (views my own, yadda yadda). During the evenings, I blog about random things and post it here. These topics may include sports, pop culture, public relations or whatever I feel like.
Being the tennis fan I am, I chose to not go to sleep last night and stayed up to watch the Australian Open final. Poured myself a cup of coffee around 215am and it kept me going until 515ish, or until the end of the first or second game of the 3rd set.
I flat out passed out at around 515 until 630, right about the time Djokovic took a commanding 4th set lead to end the match in a few more minutes. I contemplated going to bed after the trophy presentation, around 7. But then it’s like, what’s the point? I’ll just sleep til 10-11 then get screwy again tonight. I’ll just power through the day and go to bed early tonight.
Thankfully they only play the Australian Open once a year! It’s been worth the sleeplessness. It’s fun to see tennis enter another golden era where there are as many as 4-5 guys always in the mix for any given title.
Just got done learning about for and while loops in Python. Sorta makes sense, I just wish this book had some real-world examples of when these commands are used.
That was…starting to get challenging! I notice that it’s just like a foreign language: the more you practice, the more you get better at it. Inversely, the longer you go without using it the harder it is to come back to you.
Case in point: yesterday morning when I was working on this chapter, it’s explaining how to use % and %s to store and later recall a variable when you hit print. In particular, as you insert that variable in a string.
One of the final chapter exercises asks you to create 2 variables: one with your first name and one with your last name. It then asks you to create another string with a greeting message and print the message so it reads “greetings, whomever”. I remembered walking through that code snippet in the book yesterday but when it came time to recall it, I had a tough time.
I also learned about tuples and maps. One thing that stood out to me on maps is that when I printed the code snippet on my shell from a map after a couple of edits, the order changed whereas the book’s code snippet did not. The content didn’t change, just the order. What gives?
I’ve made it through 2 chapters of Python for Kids today. They were the first two chapters, which helped me understand a few basic concepts and ideas of Python.
The one thing that surprised me the most is how straightforward it all appears to be, from a word processing standpoint. I remember from previous attempts at learning how to code with going back, copy and pasting, and other such word processing tasks the tools I used was not very forgiving with letting you cursor up and down, delete, etc.
This is fun, chapter 3 covers strings, tuples, lists and maps but it’ll likely have to wait until later this weekend.