Skip to content

Instantly share code, notes, and snippets.

@deomorxsy
Created September 22, 2020 19:14
Show Gist options
  • Save deomorxsy/f38229c686f35bef52df0ca68d5f6980 to your computer and use it in GitHub Desktop.
Save deomorxsy/f38229c686f35bef52df0ca68d5f6980 to your computer and use it in GitHub Desktop.
classic way to format prints in python.
#!/usr/bin/python3
segundos=int(input())
h =segundos//3600
segundos =segundos%3600
minutos =segundos//60
segundos =segundos%60
print("%d:%d:%d", % h, minutos, segundos)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment