Created
February 18, 2013 15:16
-
-
Save nafu/4978121 to your computer and use it in GitHub Desktop.
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 three4doller(num): | |
return (num%3)*round(1/3.0, 2)+(num/3)*1 | |
print three4doller(1) | |
print three4doller(2) | |
print three4doller(3) | |
print three4doller(4) | |
print three4doller(5) | |
print three4doller(6) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment