Style Check

You receive two style scores from 0 to 10: yours and your date’s. Write a function date_fashion that takes you and date and returns the date result. If either score is 2 or lower, return 0; otherwise, if either score is 8 or higher, return 2; in all other cases, return 1.

Примеры

Ввод
5, 10
Вывод
2
Ввод
5, 2
Вывод
0
Ввод
5, 5
Вывод
1

Нужно реализовать

def date_fashion(you: int, date: int) -> int:

Теги

math
PostgreSQLv16

Hier erscheint das Ergebnis der Codeausführung

Visible tests
1
Input
5, 10
Expected2
2
Input
5, 2
Expected0
3
Input
5, 5
Expected1
4
Input
9, 1
Expected0
5
Input
3, 3
Expected1
6
Input
8, 8
Expected2
Focus radio
Paused · SomaFM · Fluid