Learning Python, Day 4 — "The String Doctor Operate on Strings"
Yesterday, I had to deal with BEDMAS and how much it hurts my brain. Today seems to be focusing on string operators, and hopefully that won't break my brain as much.
06 — The String Doctor Operate on Strings
(First of all, what the hell is that title? What does that even mean)
Concatenation is always a good time. I've done it waaaaay too often in spreadsheets to make my life easier, especially when I was doing product details for an online store. Just being able to do SKU and _1.jpg made a world of difference when the SKUs were like 20 characters long.
I do like that the examples all focus on various pets, but, man, the constant camel case is bugging me. I don't need to have breedOfAnimal that is annoying. Especially when the variable included is Golden. That's not a breed, that's a colour, what are you doing.
And I would totally use multiply by string for evil. I mean, we're talking the ability to print HA HA HA across a screen without having to type it repeatedly. It feels very Nedry. I am delighted by this.
print("YOU DIDN'T SAY THE MAGIC WORD! " * 100)
Day 4 — Results
- Concatenation is my friend.
- You can multiply strings to be a dick.
This is a short lesson, because the next one is 15 videos long, and I have to do other stuff today. And since I'm doing other stuff tomorrow as well, I think I'm going to save "The List Ninja" for Monday.
Today's Sticker

Lex Lofthouse's amazing Comic Fans holographic sticker of awesomeness.