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

Python

6368 readers
1 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
top 2 comments
sorted by: hot top controversial new old
[โ€“] rutrum@lm.paradisus.day 3 points 4 months ago* (last edited 4 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.