-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyGenRandLuckyNumbers.py
26 lines (22 loc) · 1.02 KB
/
pyGenRandLuckyNumbers.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# =============================================================================
# Created Syst: macOS Monterey 12.4 (21F79) Kernel: Darwin 21.5.0
# Created Plat: Python 3.10.5 ('v3.10.5:f377153967', 'Jun 6 2022 12:36:10')
# Created By : Jeromie Kirchoff
# Created Date: Mon Jun 11 12:46:00 2022 PDT
# Last ModDate: Tue Jul 12 16:49:53 2022 CDT
# =============================================================================
# Notes:
# =============================================================================
from random import randrange
def generateLuckyNumbers():
lotteryNumbers = [0]*6 # A list variable to hold empty list.
i = 0 # Declare and set loop counter to 0.
for i in range (0,6):
lotteryNumbers[i] = randrange(0,60)
lotteryNumbers[i] = f"{lotteryNumbers[i]:02d}"
str1 = ', '.join(e for e in lotteryNumbers)
return str1, lotteryNumbers
if __name__ == '__main__':
print(f"Your Luck Numbers For Today Are: {generateLuckyNumbers()[0]}")