![]() Ask the user to type a number of seconds and convert this into hours, minutes and seconds knowing that there are 60 minutes in an hour and 60 seconds in a minute.So for instance: 892 days should be displayed as 2 years and 162 days. Ask the user to type a number of days and convert this into years and days assuming that there are 365 days in a year.So for instance: 54 hours should be displayed as 2 days and 6 hours. Ask the user to type a number of hours and convert this into days and hours knowing that there are 24 hours in a day.We will use these operators to find out how many blocks of 5 tallies we need to print and how many tallies are remaining. In Python, the // operator and the % operator can be used to calculate the quotient (a.k.a. Note that, as we will be using a text-based output, we will use the following text to represent the tally marks: 1 ![]() ![]() Translates this number into tally marks,.They are most useful in counting or tallying ongoing results, such as the score in a game or sport, as no intermediate results need to be erased or discarded.įor this challenge you will write a Python script that: Tally marks are a form of numeral system used for counting. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |