Last active
December 16, 2015 18:38
-
-
Save thekashifmalik/5478675 to your computer and use it in GitHub Desktop.
Answer to Emad's question
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
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