Convert Seconds To Days, Hours, Minutes & Seconds | Python Example
HTML-код
- Опубликовано: 26 сен 2024
- How to convert a total amount of seconds to the equivalent number of days, hours, minutes and seconds using Python. Source code: github.com/por.... Check out www.portfolioc... to build a portfolio that will impress employers!
If I had coded it, I would have calculated days then hours then mins then secs.. your approach is better.
I love that Python has divmod() built-in, it's great for little things like this. :-)
Great explanation sir.👌
I’m glad you liked it! :-)