Reformat code to pythonic standards

This commit is contained in:
chris committed 2026-05-27 08:15:00 -04:00
1 parent 9630657710
commit 31b335b7e8
4 files changed
+128 -61

No files matched your search

+6 -3
View File
@@ -1,12 +1,15 @@
import random
def generate_random_ticket(max_main: int, max_game: int, num_main: int = 5) -> tuple[list[int], int]:
def generate_random_ticket(max_main: int, max_game: int, num_main: int = 5) -> \
tuple[list[int], int]:
"""
Generate a random lottery ticket.
:param max_main: The maximum number in the range to choose from for main game balls
:param max_game: The maximum number in the range to choose from for the game ball
:param max_main: The maximum number in the range to choose from for main
game balls
:param max_game: The maximum number in the range to choose from for the
game ball
:param num_main: The number of numbers that can be chosen in the main field
:returns: A tuple of (main_balls, game_ball)