Created
July 15, 2019 21:31
-
-
Save zeyneloz/437beb3660bcefd572a88bfc77d6d16b 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 = {...} | |
def get_random_ship(): | |
# Generate a random spaceship id | |
id = random.randint(0, 100000000) | |
return spaceships[id] # KeyError ? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment