PYTHONJUNIORJOB Telegram 929
#вопрос271

Напишите функцию, которая будет принимать время — time1 и time2 — и возвращать количество часов между ними.

Примечания:

✔️ time1 всегда будет начальным временем, а time2 — конечным.
✔️ Если time1 равно time2, верните строку "no time passed" («нисколько времени не прошло»).

Примеры:

hours_passed("3:00 AM", "9:00 AM") ➞ "6 hours"
hours_passed("2:00 PM", "4:00 PM") ➞ "2 hours"
hours_passed("1:00 AM", "3:00 PM") ➞ "14 hours"
Please open Telegram to view this post
VIEW IN TELEGRAM



tgoop.com/pythonjuniorjob/929
Create:
Last Update:

#вопрос271

Напишите функцию, которая будет принимать время — time1 и time2 — и возвращать количество часов между ними.

Примечания:

✔️ time1 всегда будет начальным временем, а time2 — конечным.
✔️ Если time1 равно time2, верните строку "no time passed" («нисколько времени не прошло»).

Примеры:

hours_passed("3:00 AM", "9:00 AM") ➞ "6 hours"
hours_passed("2:00 PM", "4:00 PM") ➞ "2 hours"
hours_passed("1:00 AM", "3:00 PM") ➞ "14 hours"

BY Python вопросы на собеседовании с ответами


Share with your friend now:
tgoop.com/pythonjuniorjob/929

View MORE
Open in Telegram


Telegram News

Date: |

SUCK Channel Telegram Other crimes that the SUCK Channel incited under Ng’s watch included using corrosive chemicals to make explosives and causing grievous bodily harm with intent. The court also found Ng responsible for calling on people to assist protesters who clashed violently with police at several universities in November 2019. Hui said the messages, which included urging the disruption of airport operations, were attempts to incite followers to make use of poisonous, corrosive or flammable substances to vandalize police vehicles, and also called on others to make weapons to harm police. In 2018, Telegram’s audience reached 200 million people, with 500,000 new users joining the messenger every day. It was launched for iOS on 14 August 2013 and Android on 20 October 2013. Add up to 50 administrators
from us


Telegram Python вопросы на собеседовании с ответами
FROM American