Created
July 15, 2019 21:34
-
-
Save zeyneloz/001d88ec89493a3f53dfd14decb69247 to your computer and use it in GitHub Desktop.
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
import random | |
spaceships = {...} | |
key_list = list(spaceships.keys()) | |
def get_random_ship(): | |
id = random.choice(key_list) | |
return spaceships[id] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment