Skip to content

Instantly share code, notes, and snippets.

@gkalemis
Created June 8, 2018 18:09
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 gkalemis/c2456e3124fa710ac9fa83335f42f0da to your computer and use it in GitHub Desktop.
Save gkalemis/c2456e3124fa710ac9fa83335f42f0da to your computer and use it in GitHub Desktop.
module3 - section2 - page6
# rock paper scissors random pick
import random
my_list = ["rock", "paper", "scissors"]
random_index = random.randrange(3)
print(my_list[random_index])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment