Skip to content

Instantly share code, notes, and snippets.

@Adobe-Android
Created May 13, 2024 22:57
Show Gist options
  • Save Adobe-Android/8a6f0456607b4bb455af66a43604feb2 to your computer and use it in GitHub Desktop.
Save Adobe-Android/8a6f0456607b4bb455af66a43604feb2 to your computer and use it in GitHub Desktop.
Calculate the number of months corresponding to a year fraction
#!/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