automated terminal push

This commit is contained in:
Software Shinobi
2025-03-10 10:38:18 -04:00
parent 6a06716248
commit b502971a89
11 changed files with 154 additions and 2172 deletions

20
utils.py Normal file
View File

@@ -0,0 +1,20 @@
import calendar
import random
def randomizeArray(arr):
"""
Returns a new randomized array without modifying the original.
"""
new_arr = arr[:] # Create a copy of the original array
random.shuffle(new_arr)
return new_arr
def convertMonthNumberMonthLong(month_number):
if not 1 <= month_number <= 12:
raise ValueError("Invalid month number")
month_name = calendar.month_name[month_number].lower().strip()
return f"{month_name}"