Python Programming Lab (Program - 28) Convert Seconds into Minutes and Hours Using Class Concept

preview_player
Показать описание
Python Programming Lab (Program - 28) Program to Convert Seconds into Minutes and Hours Using Class Concept

Write a class called Time whose only field is a time in seconds. It should have a method called convert_to_minutes that returns a string of minutes and seconds formatted as in the following example: if seconds is 230, the method should return '5:50'. It should also have a method called convert_to_hours that returns a string of hours, minutes, and seconds formatted analogously to the previous method.

download the programs from the below link

For All Programs visit my blog:

Anybody can reach me for communication, doubts or any other issues
Рекомендации по теме
Комментарии
Автор

Sir unix labprograms kuda upload cheyandi sir

chandana