Skip to content

Instantly share code, notes, and snippets.

@shamikalashawn
Created February 6, 2017 23:06
Show Gist options
  • Save shamikalashawn/1ffadd59f12285d503426d576f9f719d to your computer and use it in GitHub Desktop.
Save shamikalashawn/1ffadd59f12285d503426d576f9f719d to your computer and use it in GitHub Desktop.
This function returns the percentage of an hour that the minutes provided represent.
def return_percentage(minutes):
percentage = (minutes/60)*100
return int(percentage)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment