Created
May 13, 2024 22:57
-
-
Save Adobe-Android/8a6f0456607b4bb455af66a43604feb2 to your computer and use it in GitHub Desktop.
Calculate the number of months corresponding to a year fraction
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
#!/bin/env python3 | |
def main(): | |
months_in_year = 12 | |
portion_of_year = 7.6 | |
print(months_in_year * portion_of_year) | |
if __name__ == "__main__": | |
main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment