Skip to content

Instantly share code, notes, and snippets.

@thekashifmalik
Last active December 16, 2015 18:38
Show Gist options
  • Save thekashifmalik/5478675 to your computer and use it in GitHub Desktop.
Save thekashifmalik/5478675 to your computer and use it in GitHub Desktop.
Answer to Emad's question
def your_function(choice):
# This is your main program function
# Create a list of user inputs
user_choices = [
'rock',
'paper',
'rock',
'scizzor'
]
# Use a for loop to run your function one by one with your list elements as input
for choice in user_choices:
your_function(choice)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment