Created
July 12, 2012 04:35
-
-
Save kaiquewdev/3095759 to your computer and use it in GitHub Desktop.
Dojo
This file contains 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
#!/usr/bin/env python | |
def cozimento( tempo_cozimento=0, a=0, b=0 ): | |
output = False | |
if tempo_cozimento and a and b: | |
if a > tempo_cozimento < b: | |
# Other stuff | |
tempo_minimo = min( a, b ) | |
tempo_maximo = max( a, b ) | |
tempo_processo = tempo_minimo - ( tempo_maximo - tempo_minimo ) | |
output = ( tempo_processo == tempo_cozimento ) | |
if tempo_cozimento == a and tempo_cozimento == b: | |
output = True | |
return output |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment