Month to Quarter
Reports often split a year into quarters, with three months in each one. Write a function quarter_of that takes a month number month from 1 to 12 and returns the quarter number from 1 to 4. For example, March is in quarter 1, and November is in quarter 4.
Примеры
Ввод
3Вывод
1Ввод
8Вывод
3Ввод
11Вывод
4Нужно реализовать
def quarter_of(month: int) -> int:
Теги
math
Idħol biex tara l-istorja tas-sottomissjonijiet
IdħolIdħol biex tuża l-Mentor tal-AI
IdħolVisible tests
1
Input
3Expected
12
Input
8Expected
33
Input
11Expected
44
Input
1Expected
15
Input
12Expected
46
Input
13Expected
5Focus radio
Paused · SomaFM · Fluid