Skip to content

Instantly share code, notes, and snippets.

@NicholasLeader
Created November 13, 2023 21:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NicholasLeader/6af65c670d995c837aff2f342d9df676 to your computer and use it in GitHub Desktop.
Save NicholasLeader/6af65c670d995c837aff2f342d9df676 to your computer and use it in GitHub Desktop.
Randomly return an item from an array / list in Python
import secrets
import datetime
today = datetime.date.today()
roomcleantasks = ["trash","books","stuffies","coloringbooks/magazines","clothes"]
print("")
print("For" + " " + str(today) + ", " + "Please pick-up" + " " + secrets.choice(roomcleantasks) + "!")
print("")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment