Day 4 of 100

Published: (January 3, 2026 at 07:04 PM EST)
1 min read
Source: Dev.to

Source: Dev.to

Random module

Today I learned about the random module and its various use cases and functions. I skimmed through the Python documentation and experimented with some of the most common functions, such as random.randint().

Lists

I then moved on to another data type: the list. I explored how to:

  • Access items using offsets
  • Append items to a list
  • Modify, remove, and reorder items
  • Work with nested lists and resolve IndexErrors

Project: Rock, Paper, Scissors

For today’s project I built a simple rock‑paper‑scissors game. While researching, I discovered the World Rock Paper Scissors Association and had a good laugh at the idea that such a common and simple game can have its own global association, complete with strategies, competitions, and prizes.

Back to Blog

Related posts

Read more »

My Simple Tic-Tac-Toe Game

As part of Codecademy's portfolio project series, I built an interactive Tic‑Tac‑Toe game that runs entirely in the terminal. This was my first complete Python...

Strange.website

Article URL: https://strange.website/ Comments URL: https://news.ycombinator.com/item?id=46506596 Points: 5 Comments: 0...