Skip to content

Instantly share code, notes, and snippets.

@filipgorczynski
Created September 22, 2016 11:29
Show Gist options
  • Select an option

  • Save filipgorczynski/7f147a40ac79b635925c2476365474d9 to your computer and use it in GitHub Desktop.

Select an option

Save filipgorczynski/7f147a40ac79b635925c2476365474d9 to your computer and use it in GitHub Desktop.
def func1(arg):
if not arg:
return False
result = DB_result()
if result:
return len(result)
return False
def func2(arg):
if arg:
result = DB_result()
if result:
return len(result)
return False
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment