Created
September 16, 2020 01:33
-
-
Save 2hands10fingers/c20d3250e0bdae3f75e4015b3480ef78 to your computer and use it in GitHub Desktop.
Choose a Whiskey at Random
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from random import randrange | |
# All dem whiskeys | |
whiskeys = [ | |
'Blade & Bow', | |
'Ohishi Whisky Sherry', | |
'Glenlivet', | |
'Oban', | |
'Suntory Whiskey Toki', | |
'Powers whiskey', | |
'Iwai white', | |
'Laphroaig', | |
'Laphroaig', | |
'Laphroaig', | |
'Laphroaig', | |
'Laphroaig', | |
'Lagavulin', | |
'Woodford and Bulliet', | |
'Balcones Rumble', | |
'Balcones Brimstone', | |
'Balcones Brimstone', | |
'Wild Turkey Rare Breed', | |
'Four Roses Single Barrel', | |
'Four Roses Single Barrel', | |
'Four Roses Single Barrel', | |
'Bib & Tucker', | |
'Highland Park 12', | |
'Ardbeg 10 year', | |
'Buffalo Trace' | |
] | |
selected_whiskey_list = set() | |
whiskey_list_length = len(whiskeys) | |
for i in range(1, len(set(whiskeys))): | |
randomly_selected_number = randrange(0, whiskey_list_length) | |
selected_whiskey = whiskeys[randomly_selected_number] | |
selected_whiskey_list.add(selected_whiskey) | |
print(selected_whiskey_list) #Finished list of all the whiskeys chosen! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment