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
PostgreSQLv16

Ovdje će se prikazati rezultat izvršavanja koda

Visible tests
1
Input
3
Expected1
2
Input
8
Expected3
3
Input
11
Expected4
4
Input
1
Expected1
5
Input
12
Expected4
6
Input
13
Expected5
Focus radio
Paused · SomaFM · Fluid