12
top 2 comments
sorted by: hot top controversial new old
[-] rutrum@lm.paradisus.day 3 points 3 months ago* (last edited 3 months ago)

Idk...kind of neat, but is the die rolling example any better than just doing 'while roll() != 6:'?

[-] FizzyOrange@programming.dev 2 points 3 months ago

Yeah I would avoid this. The meaning is not obvious and at least in the examples given there are far better ways to do it.

this post was submitted on 19 Jul 2024
12 points (100.0% liked)

Python

6325 readers
236 users here now

Welcome to the Python community on the programming.dev Lemmy instance!

📅 Events

PastNovember 2023

October 2023

July 2023

August 2023

September 2023

🐍 Python project:
💓 Python Community:
✨ Python Ecosystem:
🌌 Fediverse
Communities
Projects
Feeds

founded 1 year ago
MODERATORS