Skip to content

Instantly share code, notes, and snippets.

@ajsya
Created February 10, 2023 02:01
Show Gist options
  • Save ajsya/55c7a2a8f55e3a60a5dda72bc6cb8062 to your computer and use it in GitHub Desktop.
Save ajsya/55c7a2a8f55e3a60a5dda72bc6cb8062 to your computer and use it in GitHub Desktop.
Simple Python minutes to hours converter
mintutes = int(input("enter minutes"))
minutes1 = minutes%60
hours = minutes - minutes1
house /= 60
hours = int(hours)
print(str(hours) + "h" + str(minutes1))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment