Skip to content

Instantly share code, notes, and snippets.

@frankV
Created February 6, 2016 15:55
Show Gist options
  • Save frankV/7aee5f4bf91d6d02a75d to your computer and use it in GitHub Desktop.
Save frankV/7aee5f4bf91d6d02a75d to your computer and use it in GitHub Desktop.
python method tutorial for HackFSU
def greeting():
print 'hello'
userInput = raw_input('> ')
print userInput
if userInput == 'foo':
foo()
elif userInput == 'bar':
bar()
def foo():
print 'called foo'
greeting()
def bar():
print 'called bar'
greeting()
if __name__ == '__main__':
greeting()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment