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

Python

6287 readers
44 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
[โ€“] [email protected] 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 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.