Convert milliseconds to hours, min, and seconds python
<p>I need to convert milliseconds to seconds minute hours. I have code like</p>

<pre><code>def convertMillis(millis):
    seconds=(milli/1000)%60
    minutes=(milli/(1000*60))%60
    hours=(milli/(1000*60*60))%24

    return

def main():
    milli=print(input("Enter time in milliseconds "))

    print(hours,":",minutes,":",seconds

main()
</code></pre>

<p>But it's not a very good solution.</p>

<p>I would like to know the most pythonic way to do something like</p>

<pre><code>&gt;&gt;&gt; convertmillis(5500)
0:0:5
</code></pre>