Lists, Ranges, and Tuples—Oh My!

Jesse Sumrak
Becoming a Developer
2 min readDec 7, 2018

That’s what’s been on the agenda for this week. Learning the list function has been super valuable, especially for designing different elements of my fun little program. For example, now the character has an inventory, and I’m able to .append items to the inventory as the journey progress. I also set up a simple variable for Player HP to be affected by different decisions they make. I’m TERRIBLE at math (and this does not require advanced math), but I’ve been pretty proud of some different equations I’ve come up with to achieve the outcome I’d like. Again, if anyone else saw these equations, they’d be like “Uh, duh, man. Didn’t you learn this in 6th grade?” Yes, I’m sure that’s true, but I’m proud, regardless. 🦄

Learning tuples was pretty interesting, too. For the challenge, we had a bunch of different artists, albums, genres, and tracks of music, and we had to use tuples to print the selected information we’d like. The “unpacking” was super cool and made the printing process super simple.

Also, the instructor introduced binary this week…and my eyes glazed over 😵. I had no idea what in the world he was talking about, but he said it wasn’t essential to progressing in the class, so I skipped over that for now. Maybe one day…

Now, I’ve spent the last couple days learning about dictionaries. Seems like there’s a ton of application for them, and I understood them at the basic level, but now we’re getting into some more difficult elements and functions and I’m struggling to keep up. I’ll probably do a little reviewing the next couple of days for that before moving on—hopefully, some practical challenges will get my mind moving in the right direction.

--

--

Jesse Sumrak
Becoming a Developer

Jesse Sumrak is a writing zealot focused on creating killer content. He’s spent almost a decade writing about startup, marketing, and entrepreneurship topics.